#paulc7053_applepay-domain-registration

1 messages ยท Page 1 of 1 (latest)

mint havenBOT
#

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

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

delicate ivy
#

And the express options :const expressCheckoutOptions = { layout: { overflow: "never" }, paymentMethods: { applePay: "always", }, buttonHeight: 45, paymentMethodOrder: ["google_pay", "apple_pay", "link"] };

brazen fern
#

Hi ๐Ÿ‘‹

I'm seeing some errors about a blocked frame not allowing access to https://js.stripe.com. Are you loading this inside an <iframe>?

delicate ivy
#

no

#

Im using the npm package

#

if it were an error, why would the link and GPay (on chrome) appear?

#

and on an Iphone

brazen fern
#

We make individual requests for each payment method type, as far as I know

delicate ivy
#

I see...

#

Could you please help me figure this out?

#

also, I did ensure I have the .well-known directory and everything

brazen fern
delicate ivy
#

sure

#

okay, this is my handler right now const onReady = ({ availablePaymentMethods }) => { if (!availablePaymentMethods) { setIsExpressCheckoutLoading(true) console.log("SOMETHING IS NOT RIGHT") } else { setIsExpressCheckoutLoading(false); track('payment_method_available', { payment_method: 'express' }); }; };

#

it never logs SOMETHING IS NOT RIGHT

brazen fern
#

I apologize for not being more specific. I want you to log the actual value of availablePaymentMethods

delicate ivy
#

sure

#

{ "applePay": false, "googlePay": false, "paypal": false, "link": true, "amazonPay": false }

brazen fern
#

Okay right, so that object will still evaluate to true

delicate ivy
#

it should... but it isnt true

brazen fern
#

I think we are talking past each other now

#

I'm talking about the way JavaScript evalutes the variable

#

Not whether or not Apple Pay is displayed

delicate ivy
#

okay, and what do you think is the problem?

brazen fern
#

I don't have enough information to know just yet

delicate ivy
#

okay, let me know what you further need

brazen fern
#

Oh

#

you don't have this domain registered for apple pay

#

so Apple Pay will never show up

delicate ivy
#

do I have to register each domain, the well known thing is not enough?

brazen fern
#

Nope

#

Every single domain, including sub-domain, needs to be registered

delicate ivy
#

ah damn. makes a lot of sense

#

working in codespaces doesnt really help

#

1 second I'll do it right now

#

and check again

#

Yep, now it works!

brazen fern
#

Great ๐ŸŽ‰

delicate ivy
#

Thanks a lot for your time, sorry for forgetting that!

brazen fern
#

No worries! There's a lot to keep track of ๐Ÿ˜…

delicate ivy
#

One additional question: is it possibleto prevent the buttons from being flexed when the text is set to plain ?

#

flex-rowed**

brazen fern
#

It's pretty limited

delicate ivy
#

Ah I see there's no minRows so I assume not

#

Got it!

#

Thanks a lot again @brazen fern !!

brazen fern
#

Happy to shed what ๐Ÿ’ก I can ๐Ÿ™‚

delicate ivy
#

๐Ÿ™‚