#mallain23_react-native-checkout

1 messages ยท Page 1 of 1 (latest)

opaque thornBOT
#

๐Ÿ‘‹ 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/1343633821106704395

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

hybrid patrol
#

HI ๐Ÿ‘‹

Stripe Checkout is a web-based UI that can either be hosted by Stripe or embedded into your website. The Payment Sheet is a mobile payment UI. They are designed for entirely separate situations

What platform are you developing on?

midnight notch
#

I am creating a mobile ui flow

#

using expo/react native

hybrid patrol
#

Okay so Stripe Checkout does not apply here

#

Our best practice checkout flow for React Native is this one

midnight notch
#

Ok..is there a way to generate an invoice for guest checkouts?

hybrid patrol
#

No. Post-payment invoices are only available via Stripe Checkout.

midnight notch
#

We like to generate an invoice so stripe can calculate the taxes and we can apply discounts/promo codes

#

how can i do that for a guest checkout?

hybrid patrol
#

You could create an Invoice object and use the PaymentSheet to collect payment using the related PaymentIntent

midnight notch
#

but do i need to have a stripe customer to create that invocie

#

it seems like i would need a customer

hybrid patrol
#

Yes you would

#

Invoices require a Customer record

midnight notch
#

So if I want to do this on guest checkout - how would i accomplish

#

whats the best practice around this? How do people calculate taxes and discounts without an invoice

#

is there a way to use the implicit stripe guest customer

hybrid patrol
#

In that case I think you would need to redirect your users to Stripe-hosted Checkout in a mobile browser.

#

That way, you can take advantage of the Guest Customer record, line items, taxes, and post-payment invoices

#

And discounts

midnight notch
#

is there documentation on that

hybrid patrol
midnight notch
#

hmm ok