I am using flutter and PAY plugin. I am receiving this issue:
This merchant is having trouble accepting your payment right now. Try using a different payment method. [OR_BIBED_06]
Here is my code:
GooglePayButton(
paymentConfiguration: pay.PaymentConfiguration.fromJsonString('''{
"provider": "google_pay",
"data": {
"environment": "TEST",
"apiVersion": 2,
"apiVersionMinor": 0,
"allowedPaymentMethods": [{
"type": "CARD",
"tokenizationSpecification": {
"type": "PAYMENT_GATEWAY",
"parameters": {
"gateway": "stripe",
"stripe:version": "2020-08-27",
"stripe:publishableKey": "pk_test_51...."
}
},
"parameters": {
"allowedCardNetworks": ["VISA", "MASTERCARD"],
"allowedAuthMethods": ["PAN_ONLY", "CRYPTOGRAM_3DS"],
"billingAddressRequired": true,
"billingAddressParameters": {
"format": "FULL",
"phoneNumberRequired": true
}
}
}],
"merchantInfo": {
"merchantId": "${Config.googleMerchentIdentifier}",
"merchantName": "E....."
},
"transactionInfo": {
"countryCode": "US",
"currencyCode": "USD"
}
}
}'''),
paymentItems: [
pay.PaymentItem(
amount: (int.parse(controller.amount ?? '0') +
(int.parse(controller.amount ?? '0') *
(controller.paymentMethodModel?.eureecaFee ?? 0)))
.floor()
.toString(),
type: pay.PaymentItemType.total,
label: 'Add money into Eureeca wallet')
],
width: double.infinity,
height: 48,
type: pay.GooglePayButtonType.pay,
cornerRadius: 4,
margin: const EdgeInsets.only(top: 15.0),
onPaymentResult: (paymentResult) async {
},
loadingIndicator: const Center(
child: CircularProgressIndicator(),
),
)
Can someone please help me with that?
I should see the payment sheet to do the test payment.
I am using flutter and PAY plugin. I am receiving this issue:
This merchant is having trouble accepting your payment right now. Try using a different payment method. [OR_BIBED_06]
Here is my code:
GooglePayButton(
paymentConfiguration: pay.PaymentConfiguration.fromJsonString('''{
"provider": "google_pay",
"data": {
"environment": "TEST",
"apiVersion": 2,
"apiVersionMinor": 0,
"allowedPaymentMethods": [{
"type": "CARD",
"tokenizationSpecification": {
"type": "PAYMENT_GATEWAY",
"parameters": {
"gateway": "stripe",
"stripe:version": "2020-08-27",
"stripe:publishableKey": "pk_test_51...."
}
},
"parameters": {
"allowedCardNetworks": ["VISA", "MASTERCARD"],
"allowedAuthMethods": ["PAN_ONLY", "CRYPTOGRAM_3DS"],
"billingAddressRequired": true,
"billingAddressParameters": {
"format": "FULL",
"phoneNumberRequired": true
}
}
}],
"merchantInfo": {
"merchantId": "${Config.googleMerchentIdentifier}",
"merchantName": "E....."
},
"transactionInfo": {
"countryCode": "US",
"currencyCode": "USD"
}
}
}'''),
paymentItems: [
pay.PaymentItem(
amount: (int.parse(controller.amount ?? '0') +
(int.parse(controller.amount ?? '0') *
(controller.paymentMethodModel?.eureecaFee ?? 0)))
.floor()
.toString(),
type: pay.PaymentItemType.total,
label: 'Add money into Eureeca wallet')
],
width: double.infinity,
height: 48,
type: pay.GooglePayButtonType.pay,
cornerRadius: 4,
margin: const EdgeInsets.only(top: 15.0),
onPaymentResult: (paymentResult) async {
},
loadingIndicator: const Center(
child: CircularProgressIndicator(),
),
)
Can someone please help me with that?
I should see the payment sheet to do the test payment.
Make sure to set totalPriceStatus
and totalPrice
within the transactionInfo
object. For example:
{
"countryCode": "US",
"currencyCode": "USD",
"totalPriceStatus": "FINAL",
"totalPrice": "1337"
}
https://developers.google.com/pay/api/android/reference/request-objects#TransactionInfo