#ammarath_best-practices

1 messages ยท Page 1 of 1 (latest)

gilded abyssBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1473685407571902609

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

sturdy forge
#

Hi there ๐Ÿ‘‹ the off_session parameter should be set to true when you are processing a payment without your customer present on your webpage.

For instance, if I need to charge a customer half the price up front and half upon delivery, that could be done with two Payment Intents. The first one, when the customer is placing the order, would be an on-session payment since the customer is on the webpage completing the order (off_session: false). To process the second payment later, an off-session payment would be processed, since the customer currently isn't on the website, so off_session: true.
https://docs.stripe.com/api/payment_intents/create#create_payment_intent-off_session

acoustic sage
#

can I run through the live flow of this with you ? since its a little weird I guess

#

so, a guest go into a live concert, they have an RFID tag/wristband
they has an account on our web with their payment details
when they go buy an item, they stand infornt of a Stripe terminal (i.e they are present), however they tap their RFID, and payment intent is sent from our web as e-commerce

#

in this case, is it still off session ?

sturdy forge
#

Sounds like it, since they aren't interacting with the terminal. The key thing that field controls is what happens if the issuer requests that the customer completes authentication for a transaction. Off session payments throw an error, since the customer isn't around to authenticate, but on-session payments go into a requires_action state.

When your customers are interacting with RFID scanner, is there a screen/keyboard that accompanies that?

acoustic sage
#

yes there is an ipad with a custom app on it, i dont think we are prompting for anything Stripe related tho, aside from the RFID "tap to approve its you" kind of thing

sturdy forge
#

If you have a way to handle customer authentication, like building it into that app, it may be worth pursuing. Without a way to complete authentication, payments that require authentication will just fail. If you have an authentication flow then you can still recover from those.

acoustic sage
#

understood
actually now that I think of it, even with the card presnt tap, there is no way to auth if needed as far as I know

sturdy forge
#

Card-present flows don't need the extra auth step, 3DS doesn't trigger for those, only online payments.

acoustic sage
#

ok perfect, thanks Toby !