#jacktileman_44638
1 messages · Page 1 of 1 (latest)
The above payment will be a one-time payment
If you want to save a payment method during a "payment" mode Checkout Session you can set payment_intent_data.setup_future_usage https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-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.
You'd still need to add additional code on your end to set it as the default on the customer for future subscriptions/invoices though
Thanks @proven cipher
@proven cipher - But the doc say this "A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in payment mode." Can we use this in teh "setup" mode?
No, that's something you'd only set in payment mode - in setup mode the payment method will be saved by default