#pepper-_api
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/1216916706950381608
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Someone showed me that there is a mobile example
Is there a way to add shipping method to the mobile elemnets, or this is for payment links only?
hello! the above screenshot is for Checkout Sessions : https://docs.stripe.com/payments/checkout/how-checkout-works
afaik, we don't have any in-built way to collect shipping address in our mobile SDKs.
Oh, so the only things expected to be collected in mobile SDKs during payment are
- Card information
- Country or region + Zip Code as shown here:
https://docs.stripe.com/payments/accept-a-payment?platform=react-native
depending on the specific payment method, certain additional information such as address, name, etc might be collected as well
I see there is no checkout session implementation on mobile either, I will need to request a URL from my server that creates this checkout session with the stripe API. Is that right?
yes that's correct
ah thanks!
Does the checkout session return anything when payment is completed? I assume it triggers the checkout.session.completed webhook, so I will need to listen for it if for example, I show the checkout URL in a webview in my mobile app. I need this to know when to exit the webview and return to the application
Or is there a customizable message after payment is completed to request users to return to the app?
yep, if it's completed there's a checkout.session.completed webhook, there's also a success_url and return_url which you can pass in when creating the Checkout Session
no, it's available for hosted checkout sessions too
https://docs.stripe.com/checkout/quickstart - we have a quickstart example to help you get up and running quickly