Product Introduction
- Google Pay is a mobile payment and digital wallet service from Google that uses payments saved to a Google account or Android device to provide a seamless online checkout experience for payers across Android apps and mobile networks.
Steps to integrate Google Pay
- 1. The merchant invokes the Google API to retrieve the customer's encrypted payment data
- 2. The merchant invokes the PayEase Google Pay API to initiate an authorization request (Including the encrypted payment data from the Google Pay callback)
- 3. PayEase decrypts the encrypted payment data and processes the transaction
- 1.The customer selects the Google Pay button. The merchant system uses the Google API to initiate a Google Pay request that then recognizes PayEase as the merchant's payment gateway and passes the PayEase merchant ID as the gateway merchant ID
- 2.The customer confirms payment, and Google creates encrypted payment data via the gateway private key provided and then set the encrypted data in the Google API response
- 3.The Merchant receives encrypted payment data returned by Google and submits it to PayEase
- 4.PayEase decrypts payment data and gets the card information and then processes transactions
- 5.PayEase returns transaction results to the merchant
- 6.The merchant returns the transaction results to the device that places the payment
- 7.The payment device displays the payment result to the customer
Precondition to integrate
- 1.Configure Google Pay
- You must provide your PayEase merchant ID to Google to ensure proper encryption of the Google Pay payload and authenticity of the request; For Google Pay related tutorial, please refer to:https://developers.google.com/pay/api/android/guides/tutorial
- 2.Configure the gateway and gateway merchant ID
- The following code example shows how to use the PayEase as gateway to configure the object "PaymentMethodTokenizationParameters"
- Sample 1:Java code
- .setPaymentMethodTokenizationType
(WalletConstants.PAYMENT_METHOD_TOKENIZATION_TYPE_PAYMENT_GATEWAY)
.addParameter("gateway","payeasenet").
addParameter("gatewayMerchantId","[yourPayaseMID]”)
- Sample 2:Java scritp
-
tokenizationType: "PAYMENT_GATEWAY",
parameters: {
gateway: "payeasenet",
gatewayMerchantId: "[yourPayEaseMID]"
}
}