#kekko7072

1 messages ยท Page 1 of 1 (latest)

atomic tapirBOT
proven gull
#

Hi, let me help you with this.

outer flicker
#

Hy this is the backend code

proven gull
#

Do you want to charge the card immediately too?

outer flicker
#

const paymentIntent = await stripe.paymentIntents.create({
currency: "eur",
payment_method_types: ["card_present"],
capture_method: request.body.capture_method,
amount: request.body.amount,
});

outer flicker
outer flicker
#

can i use setup_future_usage with off_session

undone pulsar
#

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

outer flicker
#

so i can use it for future usage only on_session?

undone pulsar
#

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.

outer flicker
#

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?

undone pulsar
#

Yup, as long as your Stripe account is based in the US.

outer flicker
#

my Stripe account is based in th EU (Italy)

#

๐Ÿ˜ญ

#

it won't work?

undone pulsar
#

Nope, that feature is only available to US-based accounts.

outer flicker
#

so how can i achieve this functionality?

undone pulsar
#

You can't, only US-based accounts can save payment method details while processing a terminal payment.

outer flicker
#

ok

#

so there is no way to save the card?

undone pulsar
outer flicker
#

ha ok so i could save it