#ceo_applepay-debug

1 messages ¡ Page 1 of 1 (latest)

opal onyxBOT
#

👋 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/1285626408491548673

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

zealous yoke
#

We have added the support google pay and apple pay on web for our payment links, google pay showing however apple pay not showing, confirmed and validated the domains on both stripe and apple still not working, inside apple platforms completing all the steps still not working. What we need to do? The developer will ask his questions too.

#

example:

opal onyxBOT
glossy vapor
#

ceo_applepay-debug

#

@zealous yoke Please avoid copy-pasting the same sentence in every part of our contact form. The contact form is here for you to provide actionable information about each question not just copy-pastena sentence that says "doesn't work"

#

I'm happy to help but I need you to first explain exactly how you are integrating Stripe. There are numerous ways to do this and we need the specificities of what you did exactly.

zealous yoke
#

I have provided the thread url to one of our developers

#

so he can ask his questions

#

but he cannot type

#

his id is sinel9001

glossy vapor
#

that doesn't exist.

zealous yoke
#

Sinel#1451

#

also -> Sinel#1451

#

old and new ids: ->

#

Sinel#1451

glossy vapor
#

that looks like you. Sorry I help developers with Stripe questions. I can't really debug Discord for you

zealous yoke
#

here is the id mate:

#

Sinel#1451

#

-> Sinel#1451

#

```Sinel#1451````

glossy vapor
#

Since this thread has no information at all. Ask them to just create a brand new thread with all the relevant information and I can work with them

zealous yoke
#

it has all the information

#

This is the issue->

#

We have added the support google pay and apple pay on web for our payment links, google pay showing however apple pay not showing, confirmed and validated the domains on both stripe and apple still not working, inside apple platforms completing all the steps still not working. What we need to do? The developer will ask his questions too.

sharp sorrel
#

I'm here

zealous yoke
#

Great!

sharp sorrel
#

We implemented on the web payments the elements way where you can have card, gpay, apple pay and others.
The card and gpay are showing and working at the sandbox level but the apple pay does not show at all.
In the console log of the browse I can see the warning that for apple pay we need to verify and add payment domains, we did that but still it does not show.

glossy vapor
#

Please explain how you integrate. We have dozens of products and APIs. This was never mentioned yet and is crucial information.

sharp sorrel
#

I think it's called Express Checkout Element

glossy vapor
#

Gotcha, can you share how you initialize Stripe.js and how you load that element? I just need those bits of code

sharp sorrel
#
const stripe_publishable_key = `<?= $this->settings_model->item("stripe_connect_stripe_publishable_key"); ?>`;
                const stripe_account_id = `<?= $account_id; ?>`;
                const currency_m = parseInt(`<?= $currency_m; ?>`);

                const appearance = {
                    theme: 'flat',
                    variables: { colorPrimaryText: '#262626' }
                };
                const options = {
                    layout: {
                        type: 'accordion',
                        defaultCollapsed: false,
                        radios: true,
                        spacedAccordionItems: false
                    }
                };

                const stripe = Stripe(stripe_publishable_key);
                const elements = stripe.elements({
                    clientSecret: '<?= $paymentIntent->client_secret; ?>',
                    appearance,
                });

                const paymentElement = elements.create('payment', options);
                paymentElement.mount('#payment-element');```
#

hope it makes sense the formatiing is not very good sorry about that

glossy vapor
#

all good that's exactly what I needed

#

const stripe_account_id = `<?= $account_id; ?>`; what does that line of code do? Are you a Connect platform?

sharp sorrel
#

yes we have also the connect accounts method

#

but is not implemented yet at this point into the express checkout

glossy vapor
#

Okay, can you explain in one clear sentence how you use Stripe Connect? What type of connected accounts do you use (Standard, Custom, Express) and what flow of funds (Destination Charges, Direct Charges or Separate Charges and Transfers)

#

Ah so no Connect for now?

sharp sorrel
#

in this particular case no, no connect here at the moment

glossy vapor
#

Gotcha that makes it a bit easier. So first let's confirm you have ApplePay working on your device.
Can you visit https://4242.io/test/express-checkout-element/ which is a demo my team built and send me a screenshot of what you see?

sharp sorrel
glossy vapor
#

What's your OS version on that device?

sharp sorrel
#

17.6.1

glossy vapor
#

Okay so Apple Pay appears and is configured properly (we have something weird with iOS 18 so I wanted to triple check)

#

okay so I looked at your website. I don't really get the integration. Are you maybe using an iframe on the page to show the payment UI?

sharp sorrel
#

when you open the link we provided there, please click on pay

#

there is no iframe is just a modal opening the payment form

glossy vapor
#

yep I know, I am asking about the code and the potential iframe

#

what do you call "a modal"?

sharp sorrel
glossy vapor
#

@zealous yoke I got that prt already, I'm focusing on the implementation and talking to the developer

#

Okay I looked at the code there's no iframe

#

As far as I can tell you never registered the PaymentMethodDomain for that URL on that specific Stripe account in Test mode

sharp sorrel
#

checking with CEO now

#

but yes in test mode they don't apeared verified

#

will work on that now

zealous yoke
#

appointments on stripe test mode now verified too

#

all of them verified on live mode too

glossy vapor
#

yeah you are mixing up your Stripe accounts I think. The Publishable API key used in the code is from a different Stripe account

zealous yoke
#

From apple verified too.

glossy vapor
#

See my sentence above. You are doing this on the wrong Stripe account.

sharp sorrel
#

so, the issue might be that we have also stripe connect.
and the account that we test in sandbox is the main connect account

#

could this be an isssue?

#

the card payment worked so we tinked we are good

glossy vapor
#

No you said this was unrelated to Stripe Connect.
Right now you have a pk_test_123 in your code that is the Publishable API key of the Stripe account on which the requests are being made. I looked at the Stripe account associated with that API key and it does not have any domains registered.
So I think you have 2 separate Stripe accounts and you are mixing them up

sharp sorrel
#

ooo

#

will look into that and check further

glossy vapor
#

sure thing

zealous yoke
#

keys were updated

glossy vapor
#

I tried your website and I also see ApplePay so I'm confident this is built correctly now

zealous yoke
#

17.6.1

#

iPhone 13 Pro Max

#

no apple pay button

glossy vapor
#

yeah so that means that device doesn't have ApplePay enabled/configured so the button doesn't appear

zealous yoke
#

Oh! I see. Same is applicable for Mac computers I guess.

#

Ok.

#

It makes sense. Finally a good one.

#

We were also working on Tap to pay Apple / Google via Stripe and that the same did now show any button. Do you think because of the same reason with the api keys sandbox?

glossy vapor
#

Possible but hard to say. This is a completely different integration with a completely different SDK and approach. The entire code would be entirely different

zealous yoke
#

Yeah.

#

You are right.

#

Ok.

#

Come back tomorrow if any other questions.

#

Regards