需要显示BuyFlow UI:Google Pay集成Android

pbpqsu0x  于 2023-03-28  发布在  Android
关注(0)|答案(1)|浏览(152)

在集成Google Pay时,我在单击“使用GPay购买”按钮并显示以下错误的对话框后获得ResolvableApiException。“发生了意外错误。请稍后再试。[OR_BIEBD_01]”
我已经按照示例中给出的所有步骤生成了Payment JSON数据。
Payment JSON Data::

{
  "apiVersion": 2,
  "apiVersionMinor": 0,
  "allowedPaymentMethods": [
    {
      "type": "CARD",
      "parameters": {
        "allowedAuthMethods": [
          "PAN_ONLY",
          "CRYPTOGRAM_3DS"
        ],
        "allowedCardNetworks": [
          "AMEX",
          "DISCOVER",
          "INTERAC",
          "JCB",
          "MASTERCARD",
          "VISA"
        ],
        "billingAddressRequired": false
      },
      "tokenizationSpecification": {
        "type": "PAYMENT_GATEWAY",
        "parameters": {
          "gateway": "example",
          "gatewayMerchantId": "gatewayMerchantId"
        }
      }
    }
  ],
  "transactionInfo": {
    "totalPrice": "10.0",
    "totalPriceStatus": "FINAL",
    "countryCode": "KSA",
    "currencyCode": "SAR",
    "checkoutOption": "COMPLETE_IMMEDIATE_PURCHASE"
  },
  "merchantInfo": {
    "merchantName": "Example Merchant",
    "merchantId": "01234567890123456789"
  },
  "shippingAddressRequired": false,
  "shippingAddressParameters": {
    "phoneNumberRequired": false,
    "allowedCountryCodes": [
      "KSA"
    ]
  }
}


ResolvableApiException:

{
  "zza": {},
  "zzb": {
    "zza": {},
    "zzb": [],
    "zzc": false
  },
  "zzc": true,
  "zzd": false,
  "zzf": {
    "mStatus": {
      "zzb": 1,
      "zzc": 6,
      "zzd": "BuyFlow UI needs to be shown.",
      "zze": {}
    },
    "detailMessage": "6: BuyFlow UI needs to be shown.",
    "stackTrace": [],
    "suppressedExceptions": []
  }
}
t3psigkw

t3psigkw1#

请确保对countryCodeallowedCountryCodes使用ISO 3166-1 alpha-2国家代码值。
https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

相关问题