Reputation: 83
In Android Chrome, When trying to initialize Google pay with allowedCardAuthMethod as Cryptogram 3ds, not able to view the google pay button
I am trying from India. sample code: https://jsfiddle.net/dummy4150/8e2cbs6d/
const baseRequest = {
apiVersion: 2,
apiVersionMinor: 0
};
const allowedCardNetworks = ["AMEX", "DISCOVER", "INTERAC", "JCB", "MASTERCARD", "VISA"];
const allowedCardAuthMethods = ["CRYPTOGRAM_3DS"];
const tokenizationSpecification = {
type: 'PAYMENT_GATEWAY',
parameters: {
'gateway': 'example',
'gatewayMerchantId': 'exampleGatewayMerchantId'
}
};
const baseCardPaymentMethod = {
type: 'CARD',
parameters: {
allowedAuthMethods: allowedCardAuthMethods,
allowedCardNetworks: allowedCardNetworks
}
};
const cardPaymentMethod = Object.assign(
{},
baseCardPaymentMethod,
{
tokenizationSpecification: tokenizationSpecification
}
);
Upvotes: 0
Views: 497
Reputation: 7780
Since you've specified allowedCardAuthMethods
as CRYPTOGRAM_3DS
and that you are trying from India, Here are a couple of things you could try:
googlepay-test-mode-stub-data
to use predefined test data that can be used in India (more info)Upvotes: 1