#RubyDev-applepay
1 messages · Page 1 of 1 (latest)
@arctic mauve hi what do you mean by 'checkout' exactly, how do you integrate today, is it Stripe Checkout or a custom form you built, what guide were you using?
it will appear if you're using Safari and have Apple Pay active.
neither, you don't have to activate anything.
it will just appear if you view the Checkout page in a browser that supports Apple Pay and is logged into an Apple account with cards in its wallet.
but nothing showing up for me
are you testing in Safari on a Mac with active cards? (https://stripe.com/docs/stripe-js/elements/payment-request-button#html-js-testing are the requirements)
Hey there 👋 catching up so @midnight lark can take a well deserved break. Yeah, you'd expect to see it appear above the 'Pay with card' text.
Do you have a link to the checkout page that I can take a look at?
Alternatively, you can navigate to this link and see if the Apple Pay button appears (not the one in the row of three buttons). If the button shows up then we need to take a look at your checkout page settings, if not then your machine is missing something that is blocking Apple Pay and we'd need to try figuring that out.
https://stripe.com/docs/stripe-js/elements/payment-request-button
Okay
This is my button
So you mean there will be a button side to this button?
For apple pay
Nope, it would be on the checkout page, for example here is how it looks on my demo.
That's what I'm trying to narrow down. Do you have the ID for the checkout session (cs_text_XXX) that you provided a screenshot of earlier?
Okay sure
cs_test_a1u2UszaqjxRSCY3sQTIVGkYaaCqrez2jNsgZi9VyYCBHYc5T5WXqvtD6q
here it is
Thank you, so the button is appearing for me on your checkout page, which means your local setup is missing something that is preventing Apple Pay from showing. Apologies for the slew of questions that are about to follow, but we'll run through all the blockers that I'm aware of.
You are on a mac device of some sort? If so, what type (macbook, iphone, ipad, etc)?
Perfect, and you're using Safari for your testing?
On your computer itself, if you go to Settings -> Wallet & Apple Pay, do you have a card added?
Gotcha, try refreshing the page and see if the button appears now.
also one more thing
can you check my button, I'm using server session code and client code to goto checkout page https://990632568728539590.weebly.com/new-button-test.html
btw I have added card to my Apple ID
but that didn't worked either
Is the lid of your Macbook open? (I normally doc mine and a closed lid will prevent Apple Pay from displaying)
I think Touch ID also has to be set up.
What did you want me to look at about it?
Is the code is correct like I'm using stripe js /v3
to created button session using Ajax and then going forward to checkout page
I'm using this code Stripe('pk_test_xxxxxxxxxxxxxx', { stripeAccount: 'acct_1JOWhKGkntF0z1iA'}).redirectToCheckout({
sessionId: sessionId,
})
.then(function (result) {
if (result.error) {
var displayError = document.getElementById('error-message-b9e894c1adad5070a5c6');
displayError.textContent = result.error.message;
}
});
on client side
I'm not seeing anything wrong there, is there behavior that you're concerned about?
It's almost a week and I could not understand
Is there anything I need to verify domain?
cause I already enable Apple PAy from settings
Apologies for not being more clear earlier. The Apple Pay button is displaying when I go to your checkout page. So the fact that you aren't seeing it means it is something specific to your machine.
Not a problem, I know Apple Pay can be a bit finicky.
one more last thing do I need to verify domain for this?
anything apart from enabling it from setting
Nope, since it's hosted on our domain (Stripe) that is all already taken care of.
Sorry, we don't have the capability to that here.
ahh so just copy paste?
Yeah, that'd be your best bet.