I am using Pay plugin in flutter and facing issues with Google pay. I am using stripe as a gateway method. Error code: OR_BIBED_

admin2025-05-02  1

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.

Share Improve this question edited Jan 6 at 1:22 dthorbur 1,1863 gold badges13 silver badges26 bronze badges asked Jan 2 at 12:50 Usama shahbazUsama shahbaz 213 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

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

转载请注明原文地址:http://www.anycun.com/QandA/1746119085a91932.html