#baneetsharma

1 messages · Page 1 of 1 (latest)

sharp larkBOT
opaque lodge
#

Cna you share details on how you're saving/attached the card? What APIs are you using?

viscid basin
#

sure give me a minute or two

opaque lodge
#

FWIW, this 0 amount on the 3DS modals is not something you can control

opaque lodge
viscid basin
#

the ives us payment method ID which we use it to create setup intent

$intent = $subsidiary->createSetupIntent([
'customer' => $customer->id,
'payment_method' => $request->payment_method_id,
'usage' => 'off_session'
]);

opaque lodge
#

If your subscription includes an initial payment (i.e. no free trial) then you'll likely see that reflected in the 3DS modal as opposed to 0

viscid basin
opaque lodge
#

Yep, and you shouldn't be. The guide I linked above is what you need to do

viscid basin
#

so above one will also be able to handle off-session payments?

opaque lodge
#

Yes the pm_xxx generated in that flow will be usable for off-session payments

viscid basin
#

okay,

#

a the Please don't close this discussion for few more minutes I am just going through documentation, let me go through once and if I have some querries I will ask you

opaque lodge
#

Sure, no problem

viscid basin
#

AM I correct ?

opaque lodge
#

Sure, that can work too if you prefer to collect details before creating the subscription/payment

viscid basin
#

So just confirming If I have understood the given document correctly, My new flow should be as follows:

The user selects his plan and enters his card details I will first create stripe customer and then will hit create subscription API with param values as suggested in the docs and in response will get client secret which I will pass to stripe.confirmPayment js function along with the payment element

#

and once I confirm the subscription from 3DS it will also save my card and will provide me with payment_method_id

gloomy fog
#

Hi! I'm taking over this thread.

viscid basin
#

Hi @gloomy fog can you confirm if what I have said above is correct in my case ?

gloomy fog
#

Yes that looks correct with the deferred flow:

  • First collect payment details
  • Then create the Customer/Subscriptions
  • Finally confirm the Subscription
viscid basin
#

okay got it, I will try implementing it and if I have any querries I will ask you guys again.

Thankyou for the help