#markus-bielaszka_api

1 messages ยท Page 1 of 1 (latest)

torn elbowBOT
#

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

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

wheat shuttle
#

Hi, let me help you with this.

#

payment id does not get reattached again
What do you mean by this?

soft ermine
#

I mean that I would like to make so that the customer cannot add a new "payment method" if they use the same credit card or other payment methods. for example when I check the customer that I created and I make a new subscription it will add the same card again in the payment method section

#

and a new payment method id is being created every time I use the same card in test mode

wheat shuttle
#

By the "same card" you mean the same card number, right?

soft ermine
#

Yes for example the visa test card number

wheat shuttle
#

If you want to avoid this, present the saved PaymentMethods to the customer before allowing them to add a new one. Maybe limit the number of saved PaymentMethods, i.e. "if you want to add a new card, delete one of the old ones".

soft ermine
#

Ok thanks you so much, that helps a lot! I will have a look at that ๐Ÿ˜