Created
March 25, 2014 09:40
-
-
Save bogdan/9758196 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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