braintree / braintree-android-google-payment

Google Payment component for our Braintree AndroidSDK
MIT License
3 stars 10 forks source link

Google Pay OR_BIBED_07 error on production #26

Open pgoyal-android opened 1 year ago

pgoyal-android commented 1 year ago

General information

Issue description

I am trying to use Google Pay, but I keep getting the error OR_BIBED_07 error on clicking Gpay option as shown in the screenshot below only in production environment and with test account it is working as expected.

Gpay_prod_error

My Code is like below :

private fun makeGooglePayRequest() {
        googlePayClient = GooglePayClient(braintreeClient)
        val googlePayRequest = GooglePayRequest()
        googlePayRequest.transactionInfo = TransactionInfo.newBuilder()
            .setTotalPriceStatus(WalletConstants.TOTAL_PRICE_STATUS_NOT_CURRENTLY_KNOWN)
            .setCurrencyCode("USD")
            .build()
        googlePayRequest.isPayPalEnabled = false
        googlePayRequest.isBillingAddressRequired = true
        googlePayRequest.isEmailRequired = true
        googlePayRequest.googleMerchantId = googlePayMerchantId

        googlePayClient.requestPayment(this, googlePayRequest) {
            it?.let {
                handleBrainTreeException(it)
            }
        }

This issue is only happening in the production environment. I also verified that Google Pay is enabled in the Braintree production dashboard, and it is:

Gpay_setting_braintree

Am I missing something here? Couldn't find much information about this, there are similar issues in the stripe library, but they weren't helpful. Is there an additional configuration that might need to be done in the server?

Thank you.