Page History
...
The values may include field names of the completed payment form.
Example of the processPayment funktion:
Code Block | ||
---|---|---|
| ||
function processPayment(paymentData) {
var data = {
paymentData : paymentData,
merchant_id : $('#merchantId').val(), //merchant ID
amount : $('#amount').val(), //order amount
currency : $('#currency').val(), //currency
ordernumber : $('#ordernumber').val(), //order number
email : $('#email').val(), //customer’s email
firstname : $('#firstname').val(), //Customer's first name
middlename : $('#middlename').val(),//Customer's middle name
lastname : $('#lastname').val() //Customer's last name
comment : $('#comment').val() //комментарий к заказу
}; |