Skip to main content

Building the Google Pay Integration

You can enable this by calling addGooglePay():

window.addEventListener('load', function () {
neodeos.init('sandbox', '<public key>')
.addGooglePay('iframeContainer', '<amount>', '<3-letters currency code>', '<GooglePay Provider Id (optional)>', 'options (optional)');
});

The options object supports the following optional properties:

  • gateway: identifier of the payment gateway being used
  • googlePayGatewayMerchantId: the merchant ID associated with your gateway account for Google Pay integration
  • googlePayMerchantId: your official Google Pay Merchant ID. This is required for production environments and can be obtained here
  • googlePayMerchantName: the display name shown to users within the Google Pay payment interface