#Dai-Payment Elements
1 messages ยท Page 1 of 1 (latest)
great thx
just give me a minute to go over the Q
๐
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
for your second question, have you gone through those steps https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#verifying-your-domain-with-apple-pay ?
i've added my ngrok domain to apple pay settinsg on my dev strip dfashboard
and served the file produced
would you mind sharing your url?
or even if you could share your account id I could look it up
cna you remoind me where I find my account id on my dashboard
*can *remind
sorry trying to correct my terrible typing
no worries
found it
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
for the same account you shared?
sorry I was looking at live mode my bad ๐คฆ
ah right
i have to test with a live apple wallet right despite being in test mode on stripe
yes exactly
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?
great
no actually it is running correctly and it has the right shasum
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
but I can see a 400 error from http://api.stripe.com/v1`/apple_pay/sessions
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
so google pay seems to work
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
thanks
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)
it can only work if you register in live mode using live keys(as called out in https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-using-with-connect) . But unfortunately that's impossible if you only have a test mode account
ok, so to make sure I understand
I need to register apple pay in live mode in order to test it too
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
yes, because the way it works is when you do it in livemode we register the domain in a production registry on Apple's side which allows it to work when viewing the page on a normal iOS device with live cards
if registered in test mode it only works if you have a special Apple Developer account (https://developer.apple.com/apple-pay/sandbox-testing/)
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.
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
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.
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.
thanks for the kind words!