#taoz_code
1 messages ยท Page 1 of 1 (latest)
๐ 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/1298383490458587156
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
What exactly are you doing after the payment method has been added? I believe your code would need to re-initialize CustomerAdapter in order to retrieve a new SetupIntent
in the pop up window, after adding a payment method, it will stay in the manage payment method view, I thought it will allow customers to continue adding cards or removing cards
does that mean I have to dismiss current popup window and create a new one?
all I tried were all from sample codes
customerSheet.present(from: self, completion: { result in
switch result {
}
})
it will not automatically dismiss the pop up window after adding or removing a card
Umm actually, the CustomerAdapter should be able to create a new SetupIntent automatically from the CustomerSheet ๐ค
Can you share the exact code you're using?
setupIntentClientSecret is from our backend api response
Ah I think that's the issue..
also, it's CustomerSheet, not PaymentSheet
these codes are all from sample code
the customer adapter should be calling the function that calls your API
Yup
thank you very much
NP! ๐ Sorry for the confusion
No no no, was my bad, I didn't really understand the sample codes