TASK 4: HANDLE BUYSAFE SHOPPING CART RESPONSE ELEMENTS
After making a successful AddUpdateShoppingCart call, you will have received several buySAFE response elements.
Some of these response elements will need to be displayed within the shopping cart.

BondingSignal – This is also referred to as the buySAFE Button. This field contains fully-formatted HTML. The entire section of code should be inserted into your shopping cart page. It will call a function in rollover.js (which must be available from the buySAFE Seal integration) and display the correct buySAFE Button.
NOTE: There are two BondingSignal elements in the AddUpdateShoppingCart response. The one we are concerned with is at the root level. The ShoppingCartItemBondDetail.BondingSignal is a small graphic that can be used to differentiate bondable items from unbondable items in the shopping cart.
TotalBondCost – This is a numeric value of the Bond cost. This must be stored along with all other shopping cart information. This must be added to the shopping cart’s total price.
| NOTE: The buySAFE Bond Fee is collected by the merchant as part of the total cost of the cart. Every month, buySAFE will bill the merchant for the cost of Bonds sold, minus the merchant's revenue share. |
BondCostDisplayText – This is a string value of the Bond cost. This value is used to display the Bond cost within the shopping cart. This value is also used to determine if a Bond has been selected (see TASK 5).
CartDetailsDisplayText – In its current implementation, this says “Click here to learn more about buySAFE”. This can be inserted wherever is convenient within your shopping cart.
CartDetailsUrl – This is the URL for the CartDetailsDisplayText link. It is recommended that this link opens in a new browser window or tab.
IsBuysafeEnabled
The IsBuysafeEnabled response element is a true/false value to determine if buySAFE should be displayed in the shopping cart. This is used primarily for A/B Testing purposes, but also as a way to disable buySAFE in certain scenarios. Whenever IsBuysafeEnabled is false, you should suppress all buySAFE cart signaling and fees. You should NOT suppress the buySAFE Seal (it will disappear automatically during A/B Testing).
TEST: ARE ALL BUYSAFE ELEMENTS APPEARING PROPERLY IN THE SHOPPING CART?
TEST: IS THE PRICE OF BUYSAFE BOND BEING ADDED INTO TOTAL PRICE?
<< PREVIOUS TASK || TOC || NEXT TASK >>