#andrii_customer-sheet-setup-intent

1 messages ยท Page 1 of 1 (latest)

solid driftBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1333491278289047676

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

bright pelican
#

Hi ๐Ÿ‘‹

I'm not sure what you question is. You can only ever confirm a Setup Intent once. What is it you are trying to do?

nocturne flower
#

so using the customer sheet I want to add the payment method. To add the Payment method I generate the setup intent from API. As I understood I can add only ONE oayment method using same SetuoIntent, right ?

bright pelican
#

Correct

nocturne flower
#

https://github.com/stripe/stripe-android/blob/master/paymentsheet-example/src/main/java/com/stripe/android/paymentsheet/example/samples/ui/customersheet/CustomerSheetExampleViewModel.kt

but in your example I can add more than one payment method. And I see that you generate SetupIntent pnly one time. So, did I miss something? How can I achieve the same flow ?

GitHub

Stripe Android SDK . Contribute to stripe/stripe-android development by creating an account on GitHub.

#

cause after I add the payment method I need to close the CustomerSheet then generate the new SetupIntent and then open it again

bright pelican
#

Most likely yes. It is impossible to re-use a Setup Intent

nocturne flower
#

nevermind, I see how can I do that

#

sorry that waste your time

#

I found error in my code that always provide the same SetupIntent

#

thanks