#ariel_bel
1 messages · Page 1 of 1 (latest)
hello! do you mean that you want to save the PaymentMethod after the customer makes payment for your product/service in the Payment Link?
yes
I mean that the autosave will be on, and customer will see it in the payment page
and couldn't cancel it
can you explain this part customer will see it in the payment page and couldn't cancel it?
i don't really understand what you mean
I mean that the auto save of payment method will be must
i'm sorry, unfortunately i don't understand the question. I'd suggest reaching out to Stripe Support to see if they're able to better help you : https://support.stripe.com/contact
just ignore it, how can I generate payment link with auto saving payment method?
you can take a look at https://stripe.com/docs/payments/payment-links#save-payment-details
can you send me a code sample?
you're creating a Payment Link via code?
this is the parameter that you need to set to true : https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-payment_intent_data-setup_future_usage
there's a basic sample in that link
yes
is it clear what you need to do next?
thanks, can you elaborate more about the difference between
1)on_session
Use on_session if you intend to only reuse the payment method when your customer is present in your checkout flow.
2)off_session
Use off_session if your customer may or may not be present in your checkout flow.