Google Pay Alternative
GW Integration option
Payment flow
- Customer initiates Google Pay payment on the merchant's website.
- Merchant sends the payment request to UnonaPay
- UnonaPay returns a payment link to the merchant.
- The merchant redirects the customer to the payment link. The link opens the page which displays the transaction amount along with a button to make a payment using Google Pay.
- The customer completes the payment using Google Pay.
- UnonaPay sends a webhook notification to the merchant.
Info
This integration option only supports EUR
currency.
Payment
Request
Send a payment request with the following additional parameters:
Parameter | Type | Description |
---|---|---|
request | object | |
amount * required |
bigInteger | Transaction amount in minimal currency units, for example, 5000 (50 euros). |
return_url * required |
string | URL to return the customer to when the transaction is completed. |
ip * required |
string | The customer's IP address. |
method | object | A section of the payment method. |
type * required |
string | google_pay_alt |
customer | object | A section of the customer details. |
phone * required |
string | The customer's phone number. |
email * required |
string | The customer's email address. |
first_name | string | The customer's first name. |
last_name | string | The customer's last name. |
middle_name | string | The customer's middle name. |
country | string (2) | The customer's country in the ISO 3166-1 Alpha-2 format. For example, DE . |
Request example
{
"request": {
"amount": 200,
"currency": "EUR",
"description": "description",
"return_url": "https://your_return_url.com",
"ip": "127.0.0.1",
"method": {
"type": "google_pay_alt"
},
"customer": {
"phone": "0123456789",
"email": "email@example.com"
}
}
}
Response
Redirect your customer to the URL received as the value of the form.action
parameter.
Response example
{
"transaction": {
"uid": "5658d7ca-6f8c-4050-ac19-05980b8356e5",
"type": "payment",
"status": "pending",
"amount": 200,
"currency": "EUR",
"description": "description",
"created_at": "2024-08-14T14:51:59Z",
"updated_at": "2024-08-14T14:52:01Z",
"method_type": "google_pay_alt",
"receipt_url": "https://online.unonapay.com/customer/transactions/5658d7ca-6f8c-4050-ac19-05980b8356e5/96003c2fd2601e204900b4df53b549a471743e262b15a3d8d8109d6c8ea1b1f7",
"payment": {
"status": "pending",
"gateway_id": 4379,
"ref_id": "363698704",
"message": "Transaction was initialized."
},
"google_pay_alt": {
"type": "google_pay_alt"
},
"customer": {
"email": "email@example.com",
"phone": "0123456789",
"ip": "127.0.0.1"
},
"manually_corrected_at": null,
"version": 0,
"message": "Transaction was initialized.",
"test": false,
"billing_address": {
"email": "email@example.com",
"phone": "0123456789"
},
"additional_data": {
"payment_method": {
"type": "alternative"
}
},
"gateway": {
"iframe": false
},
"form": {
"action": "https://example.com/url-for-redirect",
"method": "GET",
"fields": []
}
}
}