Configuring Google Pay

You must provide your
Cybersource
merchant ID to Google in order to ensure proper encryption of the Google Pay payload and authenticity of the request.
For a Google Pay tutorial, see Google Pay for Payments.
Set the gateway and gateway merchant ID to the appropriate indicators. The following code examples show how to configure the
PaymentMethodTokenizationParameters
object using
Cybersource
as the gateway.
Light Dark
Example: Java Code
123
.setPaymentMethodTokenizationType(WalletConstants.) .addParameter("gateway", "") .addParameter("gatewayMerchantId","[yourCybersourceMID]")
Example: JavaScript Code
1234
tokenizationType:'PAYMENT_GATEWAY', parameters: { gateway: 'cybersourceCybersource', gatewayMerchantId:'[yourcybersourceCybersourceMID]'

Example: Java Code

.setPaymentMethodTokenizationType(WalletConstants.PAYMENT_METHOD_TOKENIZATION_TYPE_PAYMENT_GATEWAY) .addParameter("gateway", "cybersource") .addParameter("gatewayMerchantId", "[yourCybersourceMID]")

Example: JavaScript Code

tokenizationType: 'PAYMENT_GATEWAY', parameters: { gateway: 'cybersource', gatewayMerchantId: '[yourCybersourceMID]'