Google Pay
const paymentClient = new PaymentClient(config);
// googlePayToken: the JSON string from paymentMethodData.tokenizationData.token
const response = await paymentClient.authorize({
merchantTransactionId: "txn_001",
amount: { minorAmount: 1000, currency: Currency.USD },
paymentMethod: {
googlePay: {
type: "CARD",
description: "Visa 1111",
info: {
cardNetwork: "VISA",
cardDetails: "1111",
},
tokenizationData: {
encryptedData: {
tokenType: "PAYMENT_GATEWAY",
token: googlePayToken,
},
},
},
},
captureMethod: CaptureMethod.AUTOMATIC,
address: { billingAddress: {} },
authType: AuthenticationType.NO_THREE_DS,
returnUrl: "https://example.com/return",
});Last updated
Was this helpful?

