#Aamir

1 messages ยท Page 1 of 1 (latest)

trail shadowBOT
raven harbor
#

hello! is your apple pay button in an iframe?

sharp crown
#

we just add given element

#

and stripe puts it in iframe

raven harbor
#

do you have a test site for us to access?

sharp crown
#

let me give you link

#

click on this link

#

and select Apple Pay in Payment Method

#

give any amount and click next

raven harbor
#

i can't access it

sharp crown
#

are you not in US?

raven harbor
#

no we're not

sharp crown
#

tell me country I will open access for some time

raven harbor
#

Singapore

sharp crown
#

ok one moment

#

can you try now?

raven harbor
#

yep, that works now ๐Ÿ‘€

#

can you remove the your restrictions? It's causing some issues when loading the page i think, even Google Pay is not loading

sharp crown
#

it loads in UAE for my other colleague

#

I can see Apple Pay on my mobile being in Pakistan

#

for same link

raven harbor
#

gimme a while, looking at it right now

#

can you share the relevant code snippets where you initialize the element, confirm payment, etc and explain in general the payment flow for your site?

sharp crown
#

well, the page I gave you here we just initialize the element and check if there is apple/google wallets are available to show normal button in 'Payment Method' section

#

as you see we don't show 'Apply Pay' button to open the apple pay popup

bold birch
#

I can see Apple Pay button, but it's not clickable

sharp crown
#

but on next page we do initialize appley pay and show 'Apply Pay' button

#

yes

#

that's our problem

bold birch
#

Can you share the code snippets which you implement the Payment Request Button?

sharp crown
#

ok one sec

#

you need js section or html?

bold birch
#

both

sharp crown
#

there are many other things there, I will share code for apple pay only

#

it has many other things in it

#

hopefully you will find wallet code

#

start for line # 188

#

<div id="payment-request-button">
<!-- A Stripe Element will be inserted here. --> </div>

bold birch
#

I can't find anything strange so far, still looking

sharp crown
#

did you see the error in console?

#

the one I pasted initially for alex-stripe

#

it seems there is some environment type issue

#

this is our production

#

and here it is working

bold birch
#

Do you mean Apple Pay works in production?

sharp crown
#

yes it is working

#

but there are changes in the code I sent you, we added some more features but those are not related to applepay directly

bold birch
#

Is the production code using the same code you shared?

sharp crown
#

yes

#

let me add prod js into test system and see if it works.

#

no difference

#

same issue

#

so code is not the issue

bold birch
#

This is indeed strange

#

I can't find any issue

#

If the code is the same in both test and live mode, then that isn't the problem

sharp crown
#

ok