#hendr1x
1 messages · Page 1 of 1 (latest)
Hi 👋
You can swap out payment methods without creating a new intent
You can either update the attached payment method directly
https://stripe.com/docs/api/payment_intents/update#update_payment_intent-payment_method
or use the Payment Element to collect new PM details and confirm the Payment Intent on the client side
Just assign new value for payment_method_types? The old values will be overwritten/removed?
Doesn't seem like there is a delete for PaymentMethod...I assume I just leave the old one unused
If you make an Update call and provide a new payment method ID in the payment_method parameter, it will overwrite what is currently there
Also if you collect new payment method details and use them to confirm the Payment Intent that will overwrite the payment method currently assigned to the intent: https://stripe.com/docs/payments/accept-a-payment?platform=android&ui=payment-sheet#android-collect-payment-details
ok. Thank you very much