#taoz_code

1 messages ยท Page 1 of 1 (latest)

glad idolBOT
#

๐Ÿ‘‹ 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.

winter surge
#

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

west magnet
#

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

west magnet
#

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

winter surge
#

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?

west magnet
#

sure

west magnet
winter surge
#

Ah I think that's the issue..

west magnet
#

also, it's CustomerSheet, not PaymentSheet

west magnet
#

these codes are all from sample code

winter surge
#

the customer adapter should be calling the function that calls your API

west magnet
#

ohhh I got it

#

so it will call the api automatically

#

got it!

winter surge
#

Yup

west magnet
#

thank you very much

winter surge
#

NP! ๐Ÿ™‚ Sorry for the confusion

west magnet
#

No no no, was my bad, I didn't really understand the sample codes

glad idolBOT