#Dai-Payment Elements

1 messages ยท Page 1 of 1 (latest)

verbal escarp
#

๐Ÿ‘‹ happy to help

#

๐Ÿ‘‹ happy to help

summer anchor
#

great thx

verbal escarp
#

just give me a minute to go over the Q

summer anchor
#

๐Ÿ‘

verbal escarp
#

My question is that is this secure and expected behaviour?
yes

#

I don't think that information is useful without credentials of some sort but wanted to double check.
totally on-point

summer anchor
#

great

#

would some extra info on the apple issue help?

verbal escarp
summer anchor
#

i've added my ngrok domain to apple pay settinsg on my dev strip dfashboard

#

and served the file produced

verbal escarp
#

would you mind sharing your url?

#

or even if you could share your account id I could look it up

summer anchor
#

cna you remoind me where I find my account id on my dashboard

#

*can *remind

#

sorry trying to correct my terrible typing

verbal escarp
#

no worries

summer anchor
#

found it

verbal escarp
summer anchor
#

acct_1HEvF7EZJCFzwd8g

#

its my dev account

verbal escarp
#

๐Ÿ‘

#

Apple Pay isn't turned on on this account

summer anchor
#

that is really strange I see this

verbal escarp
#

for the same account you shared?

summer anchor
#

and checkout preview looks like this

#

yes

#

same account

verbal escarp
#

sorry I was looking at live mode my bad ๐Ÿคฆ

summer anchor
#

ah right

#

i have to test with a live apple wallet right despite being in test mode on stripe

verbal escarp
#

yes exactly

summer anchor
#

yes so thats what I'm doing with my iphone

#

can you see the correct file being served?

#

should I delete the apple pay setup and try again?

verbal escarp
#

that's what I'm trying to figure out

#

oh I think I know what the issue is

summer anchor
#

great

verbal escarp
#

no actually it is running correctly and it has the right shasum

summer anchor
#

im just trying another payment to see if i can see where it hangs up

#

so I never get to the '.then' after calling stripe.confirmPayment

#

is the v1 relevant?

#

i think im using v2

#

or should be

#

the error i get is as follows

#

Actually its same error

#

Could not create apple pay session

verbal escarp
#

could you please share the Payment Intent id?

#

I will take a look

summer anchor
#

one nmo

#

pi_3LacrcAFuRupem121xBgXXrR

summer anchor
#

so google pay seems to work

verbal escarp
#

sorry @summer anchor I haven't had the time to look at this yet

#

I will ask a colleague to take a look, sorry again for keeping you waiting

summer anchor
#

thanks

primal knot
#

the issue is you registered the domain name for Apple Pay in test mode which doesn't work (assuming you get this error on m****.ngrok.io)

summer anchor
#

thats right

#

i'm trying to test it

primal knot
summer anchor
#

ok, so to make sure I understand

#

I need to register apple pay in live mode in order to test it too

primal knot
#

our Connect+Apple Pay story is quite poor unfortunately, there's no real way to test this. It will work in production though when you have a live mode connection to an account and can make that registration call in live mode

primal knot
#

generally the intended Stripe way to test it is you register the domain in livemode so the button appears when viewing on a normal device, and when you use test mode keys in the payment page itself, we don't charge the real card, we replace it with a Stripe test card internally. Works fine for direct accounts, but doesn't really work for Connect like this unfortunately.

summer anchor
#

I see, and in order to register it in live mode must my account be activated? I actually have a dev and production strip account. only the production account is activated

primal knot
#

yeah you need the connected account and platform account to be live so you can onboard them. Like I said, it's unfortunately not really feasible to test this, but it will work fine in production.

summer anchor
#

got it, thx, will forge ahead then. I've tested most other stuff.

#

Thanks again for all you help. Whenever I dip into these discussion boards (discord and freenode previously) I am always very impressed by all of your help and the speed of response.

primal knot
#

thanks for the kind words!