Google Pay

PaymentOptions:
https://developers.google.cn/pay/api/web/reference/request-objects?hl=zh-tw#PaymentOptions

  • environment
  • MerchantInfo
  • paymentDataCallbacks
{
  environment: "TEST",
  merchantInfo: {
    merchantName: "Example Merchant",
    merchantId: "12345678901234567890"
  },
  paymentDataCallbacks: {
    onPaymentDataChanged: onPaymentDataChanged,
    onPaymentAuthorized: onPaymentAuthorized
  }
}