#zombie-lord_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/1318628254772498555
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! Apple Pay and Google Pay are subsets of the card payment method type, but they do need to be enabled in the Dashboard to work.
PayPal is separate and needs to be specified alongside card.
Here's where you manage payment methods in the Dashboard: https://dashboard.stripe.com/settings/payment_methods
Thanks. Do Apple Pay and Google Pay also work in test mode?
Yes.
You do need to use real, live cards for Apple Pay and Google Pay in test mode, but you won't be charged in test mode.
Great. Can I ask an unrelated question about the API, or should I start a new thread
Ask away!
I want to show a Stripe Checkout session inside a modal. I added "ui_mode": "embedded". I got an error response that says:
"message" => "Sessions with `ui_mode: embedded` utilize redirects and require a `return_url`. Please specify `return_url` or disable redirects by passing `redirect_on_completion: never`."
So I then added "redirect_on_completion": "never" to the request, but it's still asking for a return_url
Can you give me the request ID for the request showing the last error you mentioned? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
OK, this was my mistake, I enabled paypal and it looks like return_url is always needed with that
Ah, yes, PayPal does require a return_url.
When showing a checkout session inside a modal, how do I detect whether it succeeded or failed? Is that the return_url? I have a single-page application (Vue.js) so utilizing redirects isn't ideal
You can specify an onComplete function for payment methods that don't require a redirect: https://docs.stripe.com/js/embedded_checkout/init#embedded_checkout_init-options-onComplete