#bojack420
1 messages · Page 1 of 1 (latest)
Hello! Yep, we have a guide for that here: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements
oh amazing thank you so much!
So to create a new payment method do I need to create a payment intent with a payment amount? My use case is for them to update card details for any future payments so it isn't for a certain amount
No, you would use a Setup Intent if you're not collecting a payment now. A Setup Intent does not have an amount.
ah ok thanks
I just realised I was following a guide I found earlier and not the link you sent. 🤦♂️ Thanks again
is there a way to pull a customers ID from a previous PaymentMethod?
So if they made a payment earlier, we save the paymentMethod, is there a way to grab that customers customerID from the paymentMethod?
Yeah, Payment Methods have a customer property: https://stripe.com/docs/api/payment_methods/object#payment_method_object-customer