#ubi
1 messages · Page 1 of 1 (latest)
Hello 👋
do you mean this flow?
https://stripe.com/docs/payments/save-and-reuse?platform=web#charge-saved-payment-method
Soft of, yeah
I am dealing with Event Sourcing around the payment, do you recommend me to save the Payment Method over the Payment Intent?
I am worry that the user would need to reset the payment method in the future payments, and not necessarily anything to do with the payment intent per se
I am implementing a Payment Plan type of thing on my end
When you say a payment plan, do you mean recurring payments (like subscriptions)?
ya ya
but I have to do it in my side (it is what it is, I made it to work with your GUIs and tools but I cant use it)
So if you need to charge the user upfront and then store the payment method for later use then you can use PaymentIntent with setup_future_usage parameter
If you don't need to charge them upfront, then you can use SetupIntents API
You can list customer's attached payment methods using this API endpoint
https://stripe.com/docs/api/payment_methods/customer_list
If they need to delete a PaymentMethod then you can use detach PaymentMethod API endpoint
https://stripe.com/docs/api/payment_methods/detach
If they need to add a new PaymentMethod then you can use the SetupIntents API for that
You can allow them to attach multiple payment methods but make them choose a "default" which you'll then use to create off-session PaymentIntents
I am guessing I can get the original address from the payment method id, right?
What exactly do you mean by original address?
I need to calculate taxes, so I need the address they used as the billing address