Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {"paymentType": 1, "payer": john doe, "currency": 1, "receiptId": 4, "amount": [{"invoiceFeeId": 12080, "amountPaid": 120},{"invoiceFeeId": 12079, "amountPaid": 200},{"invoiceFeeId": 12078, "amountPaid": 500}] }
- var paymentFormSearialized = '{"paymentType": '+$("#paymentForm #paymentType").val()+', "payer": '+$("#paymentForm #payer").val()+
- ', "currency": '+$("#paymentForm #currency").val()+', "receiptId": '+$("#receiptId").val()+', "amount": ['+amountsasjson+'] }';
- $.post("<c:url value='/payments/create/${invoiceId}'/>", $.parseJSON(paymentFormSearialized ), function(data){
- alert(data);
- });
- var data = {
- paymentType: +$("#paymentForm #paymentType").val(),
- payer: $("#paymentForm #payer").val(),
- currency: $("#paymentForm #currency").val(),
- receiptId: $("#receiptId").val(),
- amount: [{"invoiceFeeId": 12080, "amountPaid": 120},{"invoiceFeeId": 12079, "amountPaid": 200},{"invoiceFeeId": 12078, "amountPaid": 500}]
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement