Skip to content

Instantly share code, notes, and snippets.

@dudesl
Created November 20, 2014 19:43
Show Gist options
  • Save dudesl/0dddb230be4519bddc22 to your computer and use it in GitHub Desktop.
Save dudesl/0dddb230be4519bddc22 to your computer and use it in GitHub Desktop.
$("#summaryCol").html(_summaryModel.template({
"summary": {
"coupon": {
"status": "available",
"coupon_amount": 10,
"statusDetail": "Por mercadopago"
},
"payments": [
{
"transactionAmount": 10,
"installments": "3",
"installment": {
"installments": 3,
"installmentAmount": "3.89",
"totalAmount": "11.66"
},
"paymentMethod": "master",
"lastDigits": "0604"
},
{
"transactionAmount": 20000,
"installments": "12",
"installment": {
"installments": 12,
"installmentAmount": "3.89",
"totalAmount": "1.66"
},
"paymentMethod": "cabal",
"lastDigits": "xxxx"
}
],
"currentIndex": 0,
"item": {
"img": "http://placehold.it/320x150",
"name": "Preferencia de prueba"
},
"shipping": {amount:"cd de 999999"},
"globalInstallments": {
"1": {
"installments": 1,
"installmentAmount": "10.00",
"totalAmount": "10.00"
},
"3": {
"installments": 3,
"installmentAmount": "3.89",
"totalAmount": "11.66"
},
"6": {
"installments": 6,
"installmentAmount": "2.12",
"totalAmount": "12.70"
},
"9": {
"installments": 9,
"installmentAmount": "1.59",
"totalAmount": "14.27"
},
"12": {
"installments": 12,
"installmentAmount": "1.27",
"totalAmount": "15.30"
}
},
"amount": 1900000.99,
"security": true,
"severalAmountItems": true,
"paymentsMoreThanOne": false
}
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment