#RubyDev-applepay

1 messages · Page 1 of 1 (latest)

midnight lark
#

@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?

arctic mauve
#

I mean Stripe checkout page

#

follow screenshot pls

midnight lark
#

it will appear if you're using Safari and have Apple Pay active.

arctic mauve
#

Okay let me check

#

Which account I have to enable it parent or connected account

midnight lark
#

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.

arctic mauve
#

but nothing showing up for me

midnight lark
arctic mauve
#

I'm expecting somewhere at this page, right?

full thistle
#

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

arctic mauve
#

Okay

#

This is my button

#

So you mean there will be a button side to this button?

#

For apple pay

full thistle
#

Nope, it would be on the checkout page, for example here is how it looks on my demo.

arctic mauve
#

Okay

#

but why I can't see there?

full thistle
#

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?

arctic mauve
#

Okay sure

#

cs_test_a1u2UszaqjxRSCY3sQTIVGkYaaCqrez2jNsgZi9VyYCBHYc5T5WXqvtD6q

#

here it is

full thistle
#

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)?

arctic mauve
#

I'm using MacBook Air (13-inch, Early 2015)

#

BigSur

#

version 11.0.1

full thistle
#

Perfect, and you're using Safari for your testing?

arctic mauve
#

Yes

#

Version 14.0.1 (16610.2.11.51.8)

full thistle
#

On your computer itself, if you go to Settings -> Wallet & Apple Pay, do you have a card added?

arctic mauve
#

checking

#

It was not but I have added now

full thistle
#

Gotcha, try refreshing the page and see if the button appears now.

arctic mauve
#

also one more thing

#

btw I have added card to my Apple ID

#

but that didn't worked either

full thistle
#

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.

arctic mauve
#

Okay

#

have you checked my button link?

full thistle
#

What did you want me to look at about it?

arctic mauve
#

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

full thistle
#

I'm not seeing anything wrong there, is there behavior that you're concerned about?

arctic mauve
#

It's almost a week and I could not understand

#

Is there anything I need to verify domain?

arctic mauve
full thistle
#

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.

arctic mauve
#

Okay

#

Thanks then let me check on my end

#

thanks a lot

full thistle
#

Not a problem, I know Apple Pay can be a bit finicky.

arctic mauve
#

one more last thing do I need to verify domain for this?

#

anything apart from enabling it from setting

full thistle
#

Nope, since it's hosted on our domain (Stripe) that is all already taken care of.

arctic mauve
#

Okay cool thanks

#

also, can you send me this conversation to my email, please?

full thistle
#

Sorry, we don't have the capability to that here.

arctic mauve
#

ahh so just copy paste?

full thistle
#

Yeah, that'd be your best bet.

arctic mauve
#

Thanks a lot

#

Good day!