#Vija-Checkout
1 messages · Page 1 of 1 (latest)
Hi there, you can set setup_future_usage=off_session when creating the Checkout Session (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage) this allows you to save the payment method for future off-session payments.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
To create off-session payment, set off_session=true (https://stripe.com/docs/api/payment_intents/create#create_payment_intent-off_session) and confirm=true when creating the PaymentIntent, so that you can charge the customer from backend without the need of going throw the Checkout flow.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Oh Okay Thank You
I need to step away so I’m going to archive this thread. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
@frosty yarrow if you're using mode:setup you don't have to use payment_intent_data .
Yeah, but how can I save the payment methods for the next checkouts?
we don't want to fill the Bank Details again by the User for the next checkout
if you're using mode:setup that's what it does, it accepts the bank details and saves them to the Customer object used in the Session.
you can't really do that, you can't use Checkout a second time and prefill it. Instead you initiate the second payment directly from your server. (https://stripe.com/docs/payments/ach-debit/set-up-payment?platform=checkout#use-the-payment-method)
Yeah, but it's saving everytime on the stripe as well
even for the same bank account
yes, that's what it does.
why do you redirect the customer to Checkout multiple times? If they come back to your site, and you know they are a certain Stripe Customer cus_xxx, and that Customer has saved payment methods, you don't need to redirect them to Checkout to add a new payment method.
Ohh, So we should allow user to add payment method at once
and without any checkout we can directly initiate the payment with the Payment Method and Customer?
and without any checkout we can directly initiate the payment with the Payment Method and Customer?
yes, that's what I linked to : https://stripe.com/docs/payments/ach-debit/set-up-payment?platform=checkout#use-the-payment-method
Is there any API to list Payment Method for the Bank Accounts as well?
So we can let user choose during the next payment?
Thanks a lot @cosmic horizon