#spendsmart_api

1 messages ¡ Page 1 of 1 (latest)

woeful sorrelBOT
#

👋 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/1312002946879197188

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

woeful turret
#

Hi, let me help you with this.

#

When you set the PaymentMethod on the Subscription it should already be set up by that time, i.e. 3DS has already been taken care of.
How are you getting the PaymentMethod right now?

dusky quartz
#

At that time 3DS taken care. In my system, customer add multiple card, I switch card using payment method id I already have.

#

but when card get switch it should ask 3DS again for already stored card.

woeful turret
#

but when card get switch it should ask 3DS again for already stored card.
Why?

dusky quartz
#

because generally when we create subscription on card, it generate mandates in the card after confirming 3DS.

woeful turret
#

Is this your own requirement to ask for 3DS before updating the card?

dusky quartz
woeful turret
dusky quartz
#

Let me explain you.

I have normal upfront package buying those are like one time payment.
I have other subscription payment.

So I may have already stored payment methods which were used for single time payment.

#

Now I am switching payment method to one of the stored payment method

woeful turret
#

Generally, if the PaymentMethod wasn't created with SetupIntents or PaymentIntents with setup_future_usage parameter, it should only be used once.

#

So you have to ask your customers to add a new PaymentMethod with one of those methods/parameters

dusky quartz
#

ok

woeful turret
#

Yes, using SetupIntents (or Stripe Checkout with mode=setup) and calling update Subscription API to set default_payment_method.