#davidang_code
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/1237814485700448316
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! Can you link me to the page where Apple Pay should show up?
Thanks - https://omorpho.com/
Can you link me directly to the page where Apple Pay should show up?
There doesn't seem to be a payment form on this page.
That redirects me to https://www.omorpho.com/
Sure. Looking...
Hi there ๐ taking over, as my colleague needs to step away
Give me a few minutes to get caught up.
Can I get your Account ID?
thanks i also shared some screenshot confirming that apple pay is verified and is active with the correct domain that shows the embed checkout form
I'm noticing a few console errors including:
[Error] Blocked a frame with origin "https://js.stripe.com" from accessing a frame with origin "https://www.omorpho.com". Protocols, domains, and ports must match.
do you think that culd be an issue from apple pay not showing up? google pay shows up just fine
I'm not sure. I need to grab a colleague to take a look. Second pair of eyes should help
Okay, so I think I found the issue
๐ ๐ ๐
So Stripe made a change not too long ago that disallows Apple Pay in setup mode. So when you pass one of the 2 below parameters, Stripe won't show Apple pay:
setup_future_usage: "off_session"mode: "setup"
This apparently came down the pipeline from Apple Pay themselves, because they don't want customers setting up an Apple Pay payment method for future usage without using Payment Sheet ๐
so i need to stop passing in that setting setup_future_usage and mode or what is the right combination of setting for apple pay to show ?
You just need to use mode: "payment" without passing setup_future_usage: "off_session"
oh okay so i'd stop passing in setup_future_usage ...
i think it's fine to turn that off for single orders, but for subscriptions i need to pass that setup_future_usage right? so no apple pay for subscriptions?
Correct, so if you use Checkout, the user would have to be on-session for any future payments. If you need to setup Apple Pay for future usage specifically, you'd want to use a different non-Checkout payment surface like Payment Element or the Payment Request Button
ugh that is strange. then how would folks use apple pay for subscriptions - how will stripe auto-renew subscriptions without the customer?
I think it still works for Subscription mode (e.g. mode: "subscription")
But in that case, you would have to take payment up front instead of deferring the actual subscription payment (or use a trial so that they customer isn't charged immediately).
but can we auto-renew the customer's subscription without them present in the checkout flow?
Yes, subscription mode would take care of that
hmm okay thank you so much. i gotta go now but again, thank you so much for your help!
Sure thing!
sorry just to be clear for checkout with subscription, it would be payment: subscription and I would still leave out setup_future_usage correct?
I think you can include setup_future_usage if the mode is set to subscription