#ceo_applepay-debug
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/1285626408491548673
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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:
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.
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
that doesn't exist.
that looks like you. Sorry I help developers with Stripe questions. I can't really debug Discord for you
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
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.
I'm here
Great!
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.
Please explain how you integrate. We have dozens of products and APIs. This was never mentioned yet and is crucial information.
Gotcha, can you share how you initialize Stripe.js and how you load that element? I just need those bits of code
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
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?
yes we have also the connect accounts method
but is not implemented yet at this point into the express checkout
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?
in this particular case no, no connect here at the moment
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?
What's your OS version on that device?
17.6.1
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?
when you open the link we provided there, please click on pay
there is no iframe is just a modal opening the payment form
yep I know, I am asking about the code and the potential iframe
what do you call "a modal"?
hidden html, display block on pay click
@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
Your domain is appointments.clinicsoftware.com and needs to be registed properly and verified with ApplePay. This is documented here: https://docs.stripe.com/payments/payment-methods/pmd-registration
You either didn't do that, or maybe you did it on a different Stripe account?
checking with CEO now
but yes in test mode they don't apeared verified
will work on that now
We have already completed this step with Apple too.
appointments on stripe test mode now verified too
all of them verified on live mode too
yeah you are mixing up your Stripe accounts I think. The Publishable API key used in the code is from a different Stripe account
From apple verified too.
See my sentence above. You are doing this on the wrong Stripe account.
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
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
sure thing
keys were updated
Apple pay now showing on Iphone 13 Pro but not showing on iphone 13 pro max same OS version and not showing on macs, is that ok?
https://cdn.discordapp.com/attachments/1171826881792839730/1285641036378406962/image.png?ex=66eb0205&is=66e9b085&hm=df9d0d8e3c4edb084ce08eaf99ac66b3583d6e948c172ff2211d678db9bdce19&
Go back to https://4242.io/test/express-checkout-element/ on each device and check if you see ApplePay there or not
I tried your website and I also see ApplePay so I'm confident this is built correctly now
yeah so that means that device doesn't have ApplePay enabled/configured so the button doesn't appear
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?
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