#Suren - Payments
1 messages ยท Page 1 of 1 (latest)
Hi ๐
We have a large amount of this documented clearly with usable sample codes here:
https://stripe.com/docs/payments/accept-a-payment
I want implementation optional pay
if user want to pay via card select card else
use another card
which will not be attached
it's really
??
I'm sorry but that does not make any sense to me.
What are you trying to offer your users in terms of an experience?
Example I user,
and i have linked card, and i want pay some product, and i don't wont pay via linked card, i want pay another card
just tell me here you can specify the payment method
If you want to pay with another card you could use the Payment Intent to collect new card information
If you want to pay with a saved card you would pass the ID for that payment method in the Payment Intent
I can pass id from setupIntent to payment_method ?
example this id seti_1Ksn0QBfTh1Z0SMkjtQ8vmWt
No, the setup intent creates a Payment Method for a Customer
This is explained in detail here :https://stripe.com/docs/payments/save-and-reuse
Specifically, after you have created a setup intent you can charge the created records as shown here:
https://stripe.com/docs/payments/save-and-reuse?platform=web#charge-saved-payment-method
i.e. when i create setupIntent
and attach the card
does this card get into the payment List ?
For that customer, yes