#kekko7072
1 messages ยท Page 1 of 1 (latest)
Hi, let me help you with this.
Hy this is the backend code
Do you want to charge the card immediately too?
const paymentIntent = await stripe.paymentIntents.create({
currency: "eur",
payment_method_types: ["card_present"],
capture_method: request.body.capture_method,
amount: request.body.amount,
});
yes exactly
can i use setup_future_usage with off_session
Hi there ๐ jumping in as my teammate needs to step away soon. No, Terminal payments are on-session payments, since the customer is present.
I would recommend starting with this guide for saving card payment details while processing a terminal payment (currently only available to US-based Stripe accounts)
https://stripe.com/docs/terminal/features/saving-cards/save-after-payment
so i can use it for future usage only on_session?
No, sorry, were you asking if you could set setup_future_usage to off_session? (I thought you were asking about the separate off_session parameter). If so, yes, you can set setup_future_usage to off_session as shown in the linked guide.
ok so when i save the card for my customer creaded using payment_method_types: ["card_present"], i can set also setup_future_usage: off_session and it will work?
Yup, as long as your Stripe account is based in the US.
Nope, that feature is only available to US-based accounts.
so how can i achieve this functionality?
You can't, only US-based accounts can save payment method details while processing a terminal payment.
Not while also processing a payment. You can save a card without processing a payment though:
https://stripe.com/docs/terminal/features/saving-cards/save-cards-directly
ha ok so i could save it