#eblackey_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/1372556899563606118
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
would you mind sharing a link to your site where we could test this in test mode? and could you please share your code?
If you take that trial parameter off you'll see that the Apple Pay logo should show up.
Hey they, stepping in as tarzan needs to step away
I tried accessing that link, but it lands me at a login prompt
Taking a step back, the shape of the issue you describe doesnt really make sense, as query parameters should have no internal effect on apple pay appearing in any context
Can you share your elements initialization code?
You mentioned "Payment Card element" which i take to mean "Card Element", but that doesn't support Apple Pay directly. Are you using Payment Request Button or Express Checkout Element as well for that?
Yes I think Card Element is what we're using.
This is very old code that I didn't write so trying to dig through it.
Here is the code where we initialize Apple Pay
Ok, so you are using payment request button, yes
That's what it looks like.
I suspect the behaviour here is due to something in your own application code, but I don't see anything directly inspecting query params etc in that initialization
You should add some debugging in your code to trace the code path being used
It's possible something else skips this initialization, or for some reason you end up in the canMakePayment false scenario
Apple Pay button does not show up when there is a query string with the word "trial". If we remove that, then the Apple Pay button does show up.
To narrow this down, in your URL you can change your&trial=P14Dto something like&trial_test=P14D
This will still include "trial" in the query params, but not on the same exact key
My expectation is that this would result in apple pay showing again like you describe, because something in your code is ingesting that trial value and changing the behaviour
Ok, I'll continue to dig in. I wanted to make sure I wans't missing anything obvious.