#3iwebexperts - Apple Pay

1 messages ยท Page 1 of 1 (latest)

cobalt rampart
#

When you say

load a screen of add card numbers

can you explain what you mean? Also are you developing for Web or iOS?

unique vessel
#

Yes I am a developer and its happening wth mobile

#

I made the app with Laravel

#

and used Stripe Apple pay APIs

cobalt rampart
#

Okay and what do you want to see that you are not seeing?

unique vessel
#

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?

cobalt rampart
#

And that is what you want?

unique vessel
#

no I want it should open card fields

#

and yes the Apple pay is on test mode for now

cobalt rampart
unique vessel
#

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

cobalt rampart
#

Are these mobile devices iPhones?

unique vessel
#

yes iPhones

cobalt rampart
#

With configured Apple Pay wallets?

unique vessel
#

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?

cobalt rampart
#

Hi, yes it's just a little more busy now so I might be slower to respond

unique vessel
#

no problem

#

I am here

cobalt rampart
#

Okay so the next place I would look is the front-end response when attempting to load the Apple Pay button.

unique vessel
#

yes please do

cobalt rampart
#

I won't be able to as I need to help multiple people here.

unique vessel
#

oh okay

cobalt rampart
unique vessel
#

is there any telephonic technical support possible from Stripe?

cobalt rampart
#

And take a look at the result from canMakePayment

unique vessel
#

I mean any phone number or whatsapp availalbe?

cobalt rampart
#

I do know some Support individuals can assist with basic Stripe issues over a phone call. But engineers are not available by phone.

unique vessel
#

yea I already used this function

#

hmm, I just want them to check this stuff in mobile

cobalt rampart
#

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.

unique vessel
#

are there many versions of apple pay JS and Stripe code?

#

or The latest code is fine for use?

cobalt rampart
#

The latest version of Stripe JS is the best option for you.

unique vessel
#

when its not showing any fields for card details, it doesn't create payment ID in stripe log

unique vessel
cobalt rampart
#

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.

unique vessel
#

yes

cobalt rampart
#

Do you get the PaymentIntent created? POST /v1/payment_intents

unique vessel
#

no

#

There is nothing coming in log

cobalt rampart
#

Okay hold on, let me test something in my own integration.

unique vessel
#

yea please , thanks ๐Ÿ™‚

cobalt rampart
#

Okay so yes that's the problem. You need to create the Payment Intent before your user presses the Apple Pay button

unique vessel
#

okay so, how can I do this?

cobalt rampart
#

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.

unique vessel
#

okay

cobalt rampart
#

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.

unique vessel
#

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

cobalt rampart
#

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.

unique vessel
#

hmm

#

Did you try 16 USD?

#

a 1 USD product and 15 USD shipping?

cobalt rampart
#

Did you try 16 USD?
What do you mean? When?

#

I didn't do anything to your site

unique vessel
#

hmm recetly I got a log with this details

cobalt rampart
#

Okay that's a successful payment intent

unique vessel
#

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

cobalt rampart
#

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?

unique vessel
#

I have a team of my developers so, they code it

#

but yes I am also a developer

#

Trying to figureout my junior did

cobalt rampart
#

Okay so when you currently test it, do you get the payment Intent creation request?

#

Using the mobile devices that are not behaving properly

unique vessel
#

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

cobalt rampart
#

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.

unique vessel
#

exactly

#

so, this is fully guess game for me now

cobalt rampart
#

So the only device that is misbehaving is the client iPhone?

unique vessel
#

yes for now

#

and he tried with 3 different

#

iphone 7, 11 and 13 M pro

#

and all those failed

cobalt rampart
#

And did they create payment intents?

unique vessel
#

for client no

cobalt rampart
#

On your Stripe back-end. There are no logs of a POST to /v1/payment_intents

#

That match when the client attempted to pay

unique vessel
#

there are 2 logs from today

#

but those are not for my client's iphone

#

1 from Stripe support team

cobalt rampart
#

Okay the request would come from the server, but be triggered by the clients navigating to the payment screen

unique vessel
#

yea

#

How can I save this chat?

cobalt rampart
#

This thread will get archived but you can still find it in the Discord interface.

unique vessel
#

ok thanks

cobalt rampart
#

And when you come back, you can ask a moderator to un-archive this thread so everyone starts with all this context.

unique vessel
#

sure thanks ๐Ÿ™‚

cobalt rampart
#

I'd hate for you to have to explain this all over again

unique vessel
#

so, what I should do in this situation?

cobalt rampart
#

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.

unique vessel
#

yea

cobalt rampart
#

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.

unique vessel
#

yea

cobalt rampart
#

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

unique vessel
#

okk

#

I will do it

#

thanks for your time boss ๐Ÿ™‚

#

have a good day ahead