Skip to main content

Creating a GooglePay component

You can enable this by calling addGooglePay():

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

options is an optional object that can contain the following properties:

  • gateway: Gateway Identifier
  • googlePayGatewayMerchantId: Gateway Merchant Id
  • googlePayMerchantId: Google Pay Merchant Id. For production you need to get Google Pay Merchant Id here
  • googlePayMerchantName: Google Pay Merchant Name. Name will display in Google Pay form