#mallain23_react-native-checkout
1 messages ยท Page 1 of 1 (latest)
๐ 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.
- mallain23_best-practices, 1 hour ago, 10 messages
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?
Okay so Stripe Checkout does not apply here
Our best practice checkout flow for React Native is this one
Ok..is there a way to generate an invoice for guest checkouts?
No. Post-payment invoices are only available via Stripe Checkout.
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?
You could create an Invoice object and use the PaymentSheet to collect payment using the related PaymentIntent
but do i need to have a stripe customer to create that invocie
it seems like i would need a customer
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
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
is there documentation on that
Not specific to redirecting from a mobile app. But essentially you would follow this guide: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=stripe-hosted
but ignore the website parts. You would need to use some Expo/React Native specific implementation of opening the Checkout URL in a mobile browser (Chrome, Safari, etc.)
hmm ok