在集成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": []
}
}
1条答案
按热度按时间t3psigkw1#
请确保对
countryCode
和allowedCountryCodes
使用ISO 3166-1 alpha-2
国家代码值。https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2