#jzills - save for future
1 messages ยท Page 1 of 1 (latest)
Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐
Great thanks!
Right, so you might want to present a checkbox or something to your user to opt in to this
In which case upon that toggling, you can update the payment intent with a call from your client to server before payment:
https://stripe.com/docs/api/payment_intents/update#update_payment_intent-setup_future_usage
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Alternatively, if you default to opt-in, you can always leave that option enabled, but if the customer does not want you to use the payment details later, you can detach the payment method following payment success:
https://stripe.com/docs/api/payment_methods/detach
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Detaching the PM will render it unusable in future
Perfect that all makes sense thanks!
Great, NP!