#changmin-paymentRequest-show-apple-pay

1 messages ยท Page 1 of 1 (latest)

zinc obsidian
#

Hello again ๐Ÿ‘‹

fathom lily
#

Hi ๐Ÿ˜ญ

#

Thank you

#

Chrome working very well

#

but apple pay not working

zinc obsidian
#

NP! Like I mentioned before, calling the function manually would have some side effects. With Apple's strict guidelines, it is possible that we don't support the flow.

fathom lily
#

Shot!

#

'calling the function manually' which function? paymentRequest.show()?

zinc obsidian
#

Yes

fathom lily
#

please don't close this window, I will promote the code without manully call and run the code again. I will let you see if I don't manually call, it will show other errors

zinc obsidian
#

NP!

fathom lily
#

it may take 20 mis

#

mins

zinc obsidian
#

I'll keep it open

fathom lily
#

thank you

fathom lily
#

You can see I comment the paymentRequest.show() and use the default show. but the payment show is always showing before my update because I fetch the data need time

#

you can see from next screenshot, that the payment sheet popup is already showing before my update when I debug

#

before paymentRequest.update() the popup has showed already

#

That' why I use the paymentRequest.show() instead of the default show by button

#

Is this Clear?

zinc obsidian
#

Give me a moment

fathom lily
#

Thank you

#

if we know how to delay the popup showing, problem will be sloved

zinc obsidian
#

This is really a niche usecase so not really sure
Thinking....

fathom lily
#

The stripe updateWith() only happens first time when shipping change event happens. When 2nd click the button, the shipping change event will not happens, it's reasonable but if I use the paymentRequest.update() after 2nd click, it can only use before the popup shows .

#

SO it's like a dead loop

bleak fulcrum
#

stepping in here, catching up give me a sec

fathom lily
#

No problem

#

Thank you

bleak fulcrum
#

@fathom lily mind catching me up really quick, on where you're blocked?

fathom lily
#

Sorry, could you please keep this open?

#

I need to lunch