Skip to content

Instantly share code, notes, and snippets.

@bogdan

bogdan/test.html

Created Mar 25, 2014
Embed
What would you like to do?
<html>
<head>
</head>
<body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- Begin Curebit integration code -->
<script>
//<![CDATA[
var _curebit_order_details = {
responsive: true,
campaign_tags: ['default'], /* Optional - Campaign tags used to target specific campaign for offer */
purchase: {
order_number: '100123482', /* REQUIRED - Order number */
order_date: '2010-10-09 03:18:08', /* REQUIRED - Order Date and Time (in UTC time zone, or as a timestamp with timezone information) */
email: 'customer@example.com', /* REQUIRED - Customer Email Address */
subtotal: '23.97', /* REQUIRED - Purchase Subtotal */
coupon_code: 'SAVE20', /* REQUIRED - Coupon code used at checkout */
customer_id: '1234567890', /* Optional - Set to your internal customer ID for tracking */
custom_field: null, /* Optional - Any custom order data you might need */
dont_redeem: false, /* Optional - Tell curebit that this purchase should not be redeemed */
first_name: 'Name', /* Optional - Customer First Name */
last_name: 'Surname' /* Optional - Customer Last Name */
}
};
src = jQuery.param(_curebit_order_details);
document.write('<iframe width=800 height=600 src="http://curebit.com/public/mikesfirsttestsite/purchases/create.html?' + src + '"></iframe>')
//]]>
</script>
<!-- End Curebit integration code -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment