#andrew.cai
1 messages · Page 1 of 1 (latest)
Hi there, the createSource function is to create a source object, whereas paymentMethods.create function creates a payment method.
The Sources API is legacy API and I'd highly recommend you to use PaymentMethods API (e.g., through paymentMethods.create) if you are working on a new integration.
how can i find the methods created by <stripe.paymentMethods.create> in dashboard
This means that if i need to add a payment method to the customer, i need to use <stripe.paymentMethods.create> and <stripe.paymentMethods.attach> right?
Is this a card payment method?
yes
OK, unless you want to get PCI compliance by yourself, I don't recommend you to use paymentMethods API for card payment methods directly because your application will need to touch sensitive card information
I'd suggest you to use SetupIntent API and use Stripe.js to collect sensitive card information. Upon a succeeded SetupIntent confirmation, the collected card payment method will be automatically attached to the customer. https://stripe.com/docs/payments/setup-intents
Do other payment methods operate like this?
If the purpose is to collect a payment method from customer, I'd suggest you use the SetupIntent API + Stripe.js so that your integration can handle authentication (if required) easily.