#burton-tran_payment-element-apple-pay

1 messages ยท Page 1 of 1 (latest)

sand fjordBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

loud forge
#

Previously, when first time click Stripe, Apple Pay will automatic open, but now card method open instead.

How can I make Apple Pay open as default when user select Stripe Payment?

arctic night
#

Hi ๐Ÿ‘‹

Since we control the Payment Element, we may periodically change it's behavior if we collect data indicating that's better for overall conversion.

My teammates and I in this forum won't always have insight into the specifics of why certain changes were made.

That being said, I just tested on my test page, and my integrations still seem to be respecting the order I set via paymentMethodOrder. Is your integration not following the order you're showing specified in the code you shared?

loud forge
#

paymentMethodOrder is correct, you can see the sequence in the screenshot, top select is Apple Pay.

But when user click Stripe payment, Card will show first, and then after 1-2s, Apple Pay appear later. I wonder that why is this happen because it's not same as previous behavior. Previous behavior is Apple Pay and Card appear same time when user click Stripe to payment, and Apple Pay will open (not collapse) as a default selection.

Please see the screen record

arctic night
#

Apple Pay has always been added to the Payment Element after some delay, because first we have to run some checks to confirm whether we should show Apple Pay as an option for the customer.

loud forge
#

Does any Payment Element config to wait until confirm finish?
Because I want Apple Pay to show first

arctic night
loud forge
#

No it's not working at all ๐Ÿ˜ฆ

#
<Elements stripe={stripeInstance} options={{ clientSecret, locale, appearance: getAppearance(themes, store), loader: "always"  }}>
          <CheckoutForm />
        </Elements>

Added loader : "always" to Elements but it's not work

arctic night
#

What isn't working? You don't see the loader? You're encountering an error being thrown to your browser console? Or there isn't any error but the delay is also still present?

sand fjordBOT
loud forge
#

Several error, but I think it's not affect to Apple Pay loading
Not working here mean that Apple Pay still get delay appear

vernal garden
#

Hi ๐Ÿ‘‹

I"m stepping in as my colleague needs to go soon.

loud forge
#

Please walkthrough and help me to solve the problem

vernal garden
#

I think my colleague already provided our solution but it looks like you have other React-related errors that may be impacting your integration.

loud forge
#

Okay thanks, let me try to clear error first

vernal garden
#

I do want to let you know that I am able to replicate this behavior, although I am using Vanilla JS and not React

loud forge
#

you mean Apple Pay not delay showing?

vernal garden
#

No, just the opposite. I do see the delay. Because of that, my second payment method type is the one that is expanded.

loud forge
vernal garden
#

Let me try one more thing.

loud forge
#

Yes please

vernal garden
#

Okay no I am still seeing the delay. Unfortunately, I think the best option I can recommend is to create the Payment Element with defaultCollapsed set to true. Since no payment method type will be auto-expanded, it won't pre-select the the type below Apple Pay

#

Oh wait...now I don't see the delay

loud forge
#

What did you update?

vernal garden
#

I added the loader: true and then loaded my payment element a few times

#

Before I was seeing my 2nd payment method (us_bank_account) be the default open one

#

But now I see Apple Pay

loud forge
#

Yes, apple pay only delay at the first time access,
If I close modal, and re-click, it's not delay.

The point here is how can I prevent delay showing at the first time access

vernal garden
#

I do not think that is possible

loud forge
#

Okay, thanks for your help.
Let me find out more.

vernal garden
#

Okay, best of luck

#

I will flag this internally as well

loud forge
#

Yeah thanks a lot.
Hopefully Stripe team will revert to previous behavior.