#zombie-lord_api

1 messages ¡ Page 1 of 1 (latest)

dusk nacelleBOT
#

👋 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.

hollow scaffold
#

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.

lone quartz
#

Thanks. Do Apple Pay and Google Pay also work in test mode?

hollow scaffold
#

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.

lone quartz
#

Great. Can I ask an unrelated question about the API, or should I start a new thread

hollow scaffold
#

Ask away!

lone quartz
#

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

hollow scaffold
lone quartz
#

OK, this was my mistake, I enabled paypal and it looks like return_url is always needed with that

hollow scaffold
#

Ah, yes, PayPal does require a return_url.

lone quartz
#

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

hollow scaffold