#3iwebexperts - Apple Pay
1 messages ยท Page 1 of 1 (latest)
When you say
load a screen of add card numbers
can you explain what you mean? Also are you developing for Web or iOS?
Yes I am a developer and its happening wth mobile
I made the app with Laravel
and used Stripe Apple pay APIs
Okay and what do you want to see that you are not seeing?
when we press Pay button using iPhone 13 Pro its popup the dark black screen and quickly drop down
it happening very quickly
would you like to check?
And that is what you want?
no I want it should open card fields
and yes the Apple pay is on test mode for now
you can check it here : https://needywanty.com/
password : goodmorning!
and you can open this product page : https://needywanty.com/collections/shoes/products/test
Okay so first off, can you go here: https://stripe.com/docs/stripe-js/elements/payment-request-button
And validate you see the Apple Pay button and it acts like you expect.
yes the domain is verified and i followed all these steps
it shows button, but it does't open a window to add card details
and this is happending for certain devices not all
if we check with MAC computers, it is working fine
but for Mobile devices it isn't
Are these mobile devices iPhones?
yes iPhones
With configured Apple Pay wallets?
and those are using Apple pay for other websites
yes they have Apple pay wallet and he purchased with apple pay before 5 minutes he tested this
and in the morning I talked with you teammate orakaro#6716 and for him, the apple pay was working
Hi are you still with us?
Hi, yes it's just a little more busy now so I might be slower to respond
Okay so the next place I would look is the front-end response when attempting to load the Apple Pay button.
yes please do
I won't be able to as I need to help multiple people here.
oh okay
Find where this is happening in your front-end:https://stripe.com/docs/stripe-js/elements/payment-request-button#html-js-mount-element
is there any telephonic technical support possible from Stripe?
And take a look at the result from canMakePayment
I mean any phone number or whatsapp availalbe?
I do know some Support individuals can assist with basic Stripe issues over a phone call. But engineers are not available by phone.
yea I already used this function
hmm, I just want them to check this stuff in mobile
You would have to. What I am suggesting is you log the result value to verify what occurs. Of course this will be harder on mobile.
are there many versions of apple pay JS and Stripe code?
or The latest code is fine for use?
The latest version of Stripe JS is the best option for you.
when its not showing any fields for card details, it doesn't create payment ID in stripe log
yea I am using same
Good.
So when you look at the code flow in Step 4 of the guide I shared, how far are you getting in that process.
yes
Do you get the PaymentIntent created? POST /v1/payment_intents
Okay hold on, let me test something in my own integration.
yea please , thanks ๐
Okay so yes that's the problem. You need to create the Payment Intent before your user presses the Apple Pay button
okay so, how can I do this?
When the user loads the page that includes the Apple Pay button, you need to create a Payment Intent. It's the code snippet in Step 4 of the guide.
okay
This happens on your server. You then return the client_secret from that Payment Intent to your front-end so it can use it when you confirm the payment.
for old transactions, i can see the Payment Intent in log
I mean for the successfull payment done in the morning today
before 8 hours
pi_3KcCOgEhnUuYZ85812gYgtE7 This is the recent ID I found
So it sounds like something in the way the mobile browser is interacting with your site is not triggering the Payment Intent to be created. Without a valid client secret you cannot load the Apple Pay details.
hmm recetly I got a log with this details
Okay that's a successful payment intent
and it says A request to create a PaymentIntent completed
yea but customer didn't made payment so, it didn't add card details
Client secret is also there
Okay but that sounds like guessing. You will need to test this yourself, validate the behavior of the API, and make sure you are successfully passing the client secret back to the front end.
Earlier you made it sound like you had not built out that portion of your application. Did you code all of this?
I have a team of my developers so, they code it
but yes I am also a developer
Trying to figureout my junior did
Okay so when you currently test it, do you get the payment Intent creation request?
Using the mobile devices that are not behaving properly
I am in india so, Apple pay isn't working for me, but My client is in USA and for him when he press Pay button, its just flash a dark screen and drop down, for other user from your team the apple pay button was loading screen for add card details before 8 hours
My client in USA using Iphone 13 max pro
not sure what your team member was using when he tried, but he could pay successfully
Oh oh oh oh. Yeah because of RBI restrictions, if we determine any request is coming from India we have to block both Apple and Google Pay
It's really unfortunate because of how many development agencies are located in India.
So the only device that is misbehaving is the client iPhone?
yes for now
and he tried with 3 different
iphone 7, 11 and 13 M pro
and all those failed
And did they create payment intents?
for client no
On your Stripe back-end. There are no logs of a POST to /v1/payment_intents
That match when the client attempted to pay
there are 2 logs from today
but those are not for my client's iphone
1 from Stripe support team
Okay the request would come from the server, but be triggered by the clients navigating to the payment screen
This thread will get archived but you can still find it in the Discord interface.
ok thanks
And when you come back, you can ask a moderator to un-archive this thread so everyone starts with all this context.
sure thanks ๐
I'd hate for you to have to explain this all over again
so, what I should do in this situation?
The fact that it works with many users on Mac laptops and some mobile suggests it's not an issue with the Stripe integration unfortunately.
If that were broken it wouldn't work anywhere.
yea
The best advice I can offer would be to see if you can find anyone willing to test with you who can use an iPhone not located in India.
yea
Then i would explore adjusting how the Apple Pay wallet is configured and see if you can get to a state where the problem is reproducible