BuySAFE Widget installation

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
meer2005
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Feb 09, 2005 2:00 pm

BuySAFE Widget installation

Post by meer2005 » Tue Aug 12, 2008 11:30 am

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 -->

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: BuySAFE Widget installation

Post by mazhar » Tue Aug 12, 2008 1:32 pm

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.

Post Reply