#davidang_code

1 messages ยท Page 1 of 1 (latest)

glass coralBOT
#

๐Ÿ‘‹ 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.

solemn wave
#

Hello! Can you link me to the page where Apple Pay should show up?

languid lava
solemn wave
#

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.

languid lava
#

but can you add items to your cart and just click the checkout ?

solemn wave
languid lava
#

is it possible for you to add items to your cart and checkout ?

solemn wave
#

Sure. Looking...

glass coralBOT
languid lava
dim reef
#

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?

languid lava
#

sure..

#

where do i get that?

#

maybe acct_1Iqp4VFf2Z4mvxYR

dim reef
#

yup, that's the one

#

Looking now

languid lava
#

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

dim reef
#

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.

languid lava
#

do you think that culd be an issue from apple pay not showing up? google pay shows up just fine

dim reef
#

I'm not sure. I need to grab a colleague to take a look. Second pair of eyes should help

dim reef
#

Okay, so I think I found the issue

languid lava
#

๐Ÿ˜ ๐Ÿ˜ ๐Ÿ˜

dim reef
#

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:

  1. setup_future_usage: "off_session"
  2. 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 ๐Ÿ™„

languid lava
#

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 ?

dim reef
#

You just need to use mode: "payment" without passing setup_future_usage: "off_session"

languid lava
#

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?

dim reef
#

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

languid lava
#

ugh that is strange. then how would folks use apple pay for subscriptions - how will stripe auto-renew subscriptions without the customer?

dim reef
#

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

languid lava
#

but can we auto-renew the customer's subscription without them present in the checkout flow?

dim reef
#

Yes, subscription mode would take care of that

languid lava
#

hmm okay thank you so much. i gotta go now but again, thank you so much for your help!

dim reef
#

Sure thing!

languid lava
#

sorry just to be clear for checkout with subscription, it would be payment: subscription and I would still leave out setup_future_usage correct?

dim reef
#

I think you can include setup_future_usage if the mode is set to subscription