Direct Integration with Google Pay API
The Direct Integration with Google Pay API provides greater control over the payment flow and allows you to process encrypted payment data directly using Fondy. This guide outlines the steps required to configure and use the Google Pay API for payments.
-
Follow the instructions on the Google Pay API Documentation.
-
Once the Google Pay API returns the encrypted payment data, send it securely to your server for further processing. The information will come in the following configuration:
{
"apiVersion": 2,
"apiVersionMinor": 0,
"allowedPaymentMethods": [
{
"type": "CARD",
"parameters": {
"allowedAuthMethods": [
"PAN_ONLY",
"CRYPTOGRAM_3DS"
],
"allowedCardNetworks": [
"VISA",
"MASTERCARD"
]
},
"tokenizationSpecification": {
"type": "PAYMENT_GATEWAY",
"parameters": {
"gateway": "fondyeu",
"gatewayMerchantId": ""
}
}
}
],
"transactionInfo": {
"totalPrice": "",
"totalPriceStatus": "FINAL",
"currencyCode": ""
}
} -
Send the encrypted payment data from your server to Fondy's Enroll Card in 3DSecure Service endpoint. Include the encrypted data in the container parameter as specified in the documentation.
-
Fondy's server will return a final response containing order details and payment status. Use this response to process and finalise the transaction on your server.
-
Inform the payer of the payment result based on Fondy's response.
Following these steps, you can directly integrate with the Google Pay API, enabling secure and efficient payment processing through Fondy.