Step-by-Step Integration Guide
1. Obtain the Google Pay Payment Data Response
When a customer completes a payment through Google Pay, you’ll receive aGooglePayPaymentDataResponse. This response contains the necessary payment details.
2. Construct the API Request Payload
In your API request to Revolv3, include theGooglePayPaymentDataResponse within the GooglePay object of the PaymentMethod. Here’s a sample JSON payload:
Key Components Explained:
IncludeRawProcessorResponse: Set totrueto receive the raw response from the payment processor.merchantPaymentMethodRefId: A unique identifier for the payment method in your system.GooglePayPaymentDataResponse: The raw JSON string received from Google Pay. Make sure it is properly escaped.BillingAddress: The customer’s billing address.Invoice: Details of the transaction, including a reference ID and the amount.
3. Handle the Response
After processing, Revolv3 will return a response with the payment status. Handle this response in your application to update the order status and notify the customer accordingly. If the processor doesn’t support it, you will get a 400 Bad request backDecline Codes

