ngx-paypal icon indicating copy to clipboard operation
ngx-paypal copied to clipboard

No ack for postMessage onClick()

Open EnjoX opened this issue 3 years ago • 1 comments

Hi

If I click on PayPal, eps or sofort the windows is opening but not loading, After some seconds i get an error "No ack for postMessage onClick() in https://www.sandbox.paypal.com in 10000ms."

System: Angular: 12.2.9 typescript: 4.3.5 zone.js: ~0.11.4 ngx-paypal: ^8.0.0

Im not sure if the problem is in ngZone or in the paypal sdk. It looks like createOrder is not fired correctly.

I found a workaround, if I wait for 100ms in the onClick function. I couldn't find the bug in the source but maybe someone can find it with my explanation.

best regards

EnjoX avatar Oct 21 '21 08:10 EnjoX

see this, might be relevant - https://github.com/Enngage/ngx-paypal/issues/187

maxima120 avatar Oct 28 '21 14:10 maxima120