Creating a GooglePay component
You can enable this by calling addGooglePay():
window.addEventListener('load', function () {
xpanse.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 IdentifiergooglePayGatewayMerchantId: Gateway Merchant IdgooglePayMerchantId: Google Pay Merchant Id. For production you need to get Google Pay Merchant Id heregooglePayMerchantName: Google Pay Merchant Name. Name will display in Google Pay form