#azhar_error

1 messages ยท Page 1 of 1 (latest)

tawdry gardenBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1306935190861643786

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

chilly mantle
#

As per the code after the success of apple pay payment request below block is not executing a all. not getting the console printed. instead getting error

stray kestrel
#

๐Ÿ‘‹ happy to help

#

you can't test Apple Pay in India

chilly mantle
#

from USA also not working

#

my collegues are in USA they testing its not working for them

stray kestrel
#

would you mind sharing a PaymentIntent ID?

chilly mantle
#

is it working for you ?

#

i havent reached till that point @stray kestrel

#

Can you please try my poc link

#

is this executing for you?
alert('confirm call executed');

stray kestrel
#
                    elementsNew,
                    params: {
                        payment_method_data: {
                            billing_details: {
                                name: 'Jenny Rosen',
                            }
                        },
                        // return_url: 'https://example.com/order/123/complete'
                    }
                });```
#

this code is wrong

#

actually never mind

#

it's not

chilly mantle
#

its dummmy code only. but for my case i havent reached that yet

#

expressCheckoutElement.on('confirm', async (event) => {

this is not executing for me

stray kestrel
#

ok wait

#

the problem is the javascript shorthand

#

you need to pass { elements: elementsNew, //...}

#

your code is passing {elementsNew:elementsNew}

chilly mantle
#

can you refresh. just pushed this change

#

Hi @stray kestrel you understood my erorr, right? sorry for messy english

stray kestrel
#

it's working fine now

chilly mantle
#

dont know why its only working for you guys i am not able to test at my end

stray kestrel
#

because you're in India

chilly mantle
#

to test this we dont need sandbox apple account right ?

chilly mantle
#

person apple id + live card can be used

#

by using vpn i will be able to test ? or its need us based apple id account?

stray kestrel
stray kestrel
chilly mantle
#

may be my colluges credit cards not supported for apple pay? can be that case

#

browserstack seems disabled apple pay

#

button also not visible

stray kestrel
#

yes there is no guaranteed way of testing this from India

chilly mantle
#

oh god

stray kestrel
#

maybe try browserstack + vpn

chilly mantle
#

any specific credet card can i test ?

stray kestrel
chilly mantle
#

ok main issue is location only

stray kestrel
#

yep

chilly mantle
#

thanks tonight i will try it with my other colluges then. if you donnt mind can you post me screenshot of this one so i can show them its working from non india location?

alert('confirm call executed');

stray kestrel
#

give me a second

#

would you mind removing the alert please

chilly mantle
#

ok and instead print on console ?

stray kestrel
#

yes if you want

chilly mantle
#

ok give me a moment

#

done deployed

stray kestrel
#

you still have alert

chilly mantle
#

nope. may be cache. can you hardrefresgh

stray kestrel
#

yes now it's working

#

and the confirmation token was created successfully

#

never use alerts especially not when you're doing Payments

#

otherwise it won't work

chilly mantle
#

please send me screenshot sir

#

i have to show to my manager

stray kestrel
chilly mantle
#

thnkas

stray kestrel
#

let me know if you need any more help

tawdry gardenBOT