Page 1 of 1

BuySAFE Widget installation

Posted: Tue Aug 12, 2008 11:30 am
by meer2005
I'm trying to install the buySAFE widget on my receipt page to become a bonded seller. The variables they gave me for the cart information didn't work. Does anyone know the correct variables for 7.0?


Variables in the brackets that I need replaced:

Code: Select all

// Instructions: Replace any items in <brackets> with JavaScript variables or literal values from your cart.

// Basic order information
var buySAFE_Merchant  = 'NhqsEaEs79sXVJwGkcp0WjC6mbp58JbmNkx6xOnRA6yEXwqlzUOBmyMu95dR2Pa0pxalRWkq%2bwBsUfEEbYDAXw%3d%3d';
var buySAFE_OrderNum  = '<the unique order number>';

// Then, for EACH ITEM in the cart, call the function buySAFE_addCartItem:
buySAFE_addCartItem( "<item_title>", <item_quantity_purchased>, <item_price>, "<item_item_number>" )

Entire widget script:

Code: Select all

<!-- BEGIN: buySAFE Other Platform widget -->
<script type="text/javascript" src="https://seal.buysafe.com/private/rollover/utils.js"></script>
<script type="text/javascript">
<!--
// Instructions: Replace any items in <brackets> with JavaScript variables or literal values from your cart.

// Basic order information
var buySAFE_Merchant  = 'NhqsEaEs79sXVJwGkcp0WjC6mbp58JbmNkx6xOnRA6yEXwqlzUOBmyMu95dR2Pa0pxalRWkq%2bwBsUfEEbYDAXw%3d%3d';
var buySAFE_OrderNum  = '<the unique order number>';

// Then, for EACH ITEM in the cart, call the function buySAFE_addCartItem:
buySAFE_addCartItem( "<item_title>", <item_quantity_purchased>, <item_price>, "<item_item_number>" )


// Sample of a cart with 2 items in it
// var buySAFE_Merchant  = 'abcabcabcabcabcabcabc...abcabcabcabcabcabcabc%3D%3D';
// var buySAFE_OrderNum  = 'order_2007-05-11_00123';
// buySAFE_addCartItem( "iPod 30GB", 1, 199.99, "AIP1234" )
// buySAFE_addCartItem( "iPod Carrying Case", 2, 15.99, "AIP-CASE-100" )

//-->
</script>
<script type="text/javascript" src="https://seal.buysafe.com/private/rollover/widget.js"></script> 
<!-- END: buySAFE Other Platform widget -->

Re: BuySAFE Widget installation

Posted: Tue Aug 12, 2008 1:32 pm
by mazhar
There is a pretty good example for doing this kind of stuff ConLib/GoogleAnalyticsWidget control.
You have to do more or less the same (emitting Javascript) the way as this control is doing for Google Analytics.