Skip to content

Instantly share code, notes, and snippets.

@duaneleem
Last active March 7, 2018 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duaneleem/2034d1653e2a48108d3f272c7476f60d to your computer and use it in GitHub Desktop.
Save duaneleem/2034d1653e2a48108d3f272c7476f60d to your computer and use it in GitHub Desktop.
Example output for Diray 20180213
var rm_trans = {
affiliateConfig: {ranMID: '42785', discountType: 'item'},
orderid: '2072',
currency: 'USD',
customerStatus: 'CUSTOMER_STATUS',
conversionType: 'Sale',
customerID: '0',
discountCode: 'upfree2, test2, test3',
discountAmount: 39.28,
taxAmount: 0,
lineitems: [{
quantity: 2,
unitPrice: 23.98,
unitPriceLessTax: 23.98,
SKU: 'SM4010PS-2398',
productName: 'Scalp Med® Phyto-Pūr Shampoo for Thinning Hair'
}, {
quantity: 3,
unitPrice: 36.99,
unitPriceLessTax: 36.99,
SKU: 'SM4013DX-3699',
productName: 'Scalp Med® Panthenol-Dx Follicle Detoxifier'
}, {
quantity: 1,
unitPrice: 37.5,
unitPriceLessTax: 37.5,
SKU: 'SM4011CE-3750',
productName: 'Scalp Med® Cortex Enlarger Thickening Spray'
}, {
quantity: 1,
unitPrice: 0,
unitPriceLessTax: 0,
SKU: 'SM4011CE-FREE',
productName: 'Scalp Med® Cortex Enlarger Thickening Spray'
}]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment