#aliumujib

1 messages · Page 1 of 1 (latest)

pure cipherBOT
hollow cape
#

Hello, apologies for the delay. Can you send me more about the ID that is being created that your backend does not recognize? Our API should recognize the ID as long as it is on the same account you are trying to use it with

#

Do you have the request ID of a time that you saw this error? (req_123)

velvet thicket
#

Hi @hollow cape the Id is just the Id returned by stripe for googe_pay

#

it's litterally just the string "google_pay"

hollow cape
#

Can you send me the code that you are running where you get the string google_pay?

velvet thicket
#

sure

#

`override suspend fun setSelectedPaymentOption(paymentOption: CustomerAdapter.PaymentOption?): CustomerAdapter.Result<Unit> {
var result = adapter.setSelectedPaymentOption(paymentOption)
when (result) {
is CustomerAdapter.Result.Failure -> {
Logger.warn(result.cause)
}

        is CustomerAdapter.Result.Success -> {
            paymentOption?.let {
                paymentRepository.setSelectedPaymentMethod(paymentOption.id)
                    .onFailure {
                        Logger.warn(it)
                        result = CustomerAdapter.Result.failure(
                            it,
                            displayMessage = "Error setting default method card"
                        )
                    }
            }
        }
    }

    return result
}`

the above is the code that runs when the user sets google pay as the selected payment option

#

paymentOption.id is what returns google_pay

hollow cape
#

Thank you. I am less familiar with how to integrate directly with Google's API, will consult my colleagues and get back to you

velvet thicket
#

thank you

hollow cape
#

Ah apologies, I did not realize that this was a beta flow

#

Unfortunately we can't help with those much on this server but you should have been given an email address to send beta questions to when you were onboarded

velvet thicket
hollow cape
#

I think it is usually more specific than that but our support team should be able to help you and get you the email to reach out to in future https://support.stripe.com/questions/contact-stripe-support