#bilal-legacy-apis
1 messages · Page 1 of 1 (latest)
bilal-legacy-apis
@agile scarab those are legacy APIs deprecated back in 2018. They are incompatible with a lot of flows such as 3DS, Mandate collection, redirect for other payment method types, etc.
So really you should not use those APIs in a new integration
But for saving credit card detail i still have to use Stripe::Customer.create right ?
Yes just don't pass the source id or use the Create Charge API
So how can I migrate all the existing customers to SetupIntent Api ?
You don't need to migrate anything, those will continue to work. You would evolve your integration to use SetupIntents or PaymentIntents for new Customers/new payments
Got it, So as per documentation SetupIntent is only for storing payment method details, for that we have to integrate paymentElement ? or something else ?
SetupIntent is to collect payment method details without accepting a payment immediately
PaymentIntent is to accept a payment immediately and you can collect payment method details at the same time and even save those automatically after the successful payment.
Elements is our UI library of components to collect payment method details. There are many different Elements. The most recent one is PaymentElement which is what we recommend and it works with both PaymentIntent and SetupIntents
Got in, Thank you 🙂