The user decides to opt out of the bond by clicking on the buySAFE Bonding button.
The button click causes another AddUpdateShoppingCart call (API Request displayed below).
Note: The AddUpdateShoppingCart call is made with WantsBond=false

<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <BuySafeWSHeader xmlns="http://ws.buysafe.com"> <Version>610</Version> </BuySafeWSHeader> <MerchantServiceProviderCredentials xmlns="http://ws.buysafe.com"> <UserName>USERNAME</UserName> <Password>PASSWORD</Password> </MerchantServiceProviderCredentials> <BuySafeUserCredentials xmlns="http://ws.buysafe.com"> <AuthenticationTokens> <string>STORE_TOKEN</string> </AuthenticationTokens> </BuySafeUserCredentials> </soap:Header> <soap:Body> <AddUpdateShoppingCart xmlns="http://ws.buysafe.com"> <ShoppingCartAddUpdateRQ> <BuyerInfo> <FirstName /> <LastName /> <Email /> <Type /> <BillingAddress> <CountryCode>US</CountryCode> </BillingAddress> <ShippingAddress> <CountryCode>US</CountryCode> </ShippingAddress> </BuyerInfo> <ShoppingCartId>TestShoppingCart</ShoppingCartId> <ClientIP>255.255.255.255</ClientIP> <Items> <ShoppingCartItem> <UserToken>STORE_TOKEN</UserToken> <Title>Item1</Title> <MarketplaceItemCode>ABC123</MarketplaceItemCode> <QuantityPurchased>1</QuantityPurchased> <PriceInfo> <FinalPrice> <Value>17</Value> <CurrencyCode>USD</CurrencyCode> </FinalPrice> </PriceInfo> <URLInfo>
<ViewItem>http://www.store.com/ ...</ViewItem> </URLInfo> </ShoppingCartItem> </Items> <WantsBond> <HasBoolean>true</HasBoolean> <Value>false</Value> </WantsBond> </ShoppingCartAddUpdateRQ> </AddUpdateShoppingCart> </soap:Body> </soap:Envelope>
NOTE: The buySAFEOnClick Function
When clicked, the buySAFE Button object will automatically execute the JavaScript “buySAFEOnClick” function. This is a built-in feature of the Button object. You will not need to call this function yourself.
You will, however, need to write the buySAFEOnClick function yourself. It must be named buySAFEOnClick because that is the name that our Button will be executing. Tell me more...