Hosted Payment Page
If you are using Hosted Payment Page integration option then you need to enable your account for Google Pay™ on the Airwallex web app. For details, see Enable Google Pay
You are not required to complete integration and registration formalities with Google for the Hosted Payment Page integration.
Integration steps
Create a PaymentIntent Create a PaymentIntent API using the Airwallex API.
Integrate Hosted Payment Page
Configure Google Pay Include the
googlePayRequestOptions
JS object when calling the AirwallexredirectToCheckout
method. Note that thecountryCode
is the only required field ingooglePayRequestOptions
. You can also include additional information to configure the button style or provide information on payment processing capabilities.
Example request
Subscription payments
You can use Google Pay payment method to setup recurring payments on your website. Our API enables clients to provide clear information about the recurring contract terms which makes it easy for consumers to checkout with ease.
This documentation is limited to subsequent Merchant initiated transactions, subsequent Consumer Initiated Transaction is not considered since Google Pay is a digital wallet and already uses saved credentials to process payments.
Save details with deferred payment
You need to follow the steps as described in registered checkout
Configure Google Pay to include information about the order items, charge & contract details, these details will be displayed on the paymentsheet shown to customer.
Save details with payment
- You need to follow the steps as described in the documentation. Sample code is as below