Web Integration
Instructions detailing how to integrate Google Pay™ into your Website using Fat Zebra as your gateway
Pre-requisites
- Read the Google Pay Web Brand Guidelines
- Follow Google Pay's Deploy production environment guidelines(Follow Google Pay's Deploy production environment guidelines). In this step you will obtain a merchantID. By integrating Google Pay, you agree to Google's terms of service.
- Contact the Fat Zebra support team to have Google Pay enabled on your account. You will be supplied a gatewayMerchantID.
Implementation Steps
Follow the instructions in the following Google guides to implement a Google Pay button in your app:
When setting up the tokenizationSpecification object, specify the following values for the gateway and gatewayMerchantId values:
const tokenizationSpecification = {
type: 'PAYMENT_GATEWAY',
parameters: {
'gateway': 'fatzebra',
'gatewayMerchantId': '<provided by Fat Zebra>'
}
};
The Google Pay button will generate an encrypted token that you must then include in a request to the Fat Zebra API to:
- Create a purchase using the card in the Google Pay payload
- Or tokenize the card details in the Google Pay payload
The following documentation outlines the format of the two API calls:
Updated 1 day ago