Page History
...
| 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() //комментарий к заказу
}; |
After payment using Google Pay is completed, the server returns the order number and status in response. To process the response, you must add the appropriate code to this processPayment function: