Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Listener already attached for window" error when trying to re-submit the form #26

Open
agounane opened this issue Jan 1, 2023 · 1 comment

Comments

@agounane
Copy link

agounane commented Jan 1, 2023

Hi,

[Sandbox mode] When I submit the form for the first time after reloading the page, it works as normal. However, if the form has an error (e.g. an invalid card expiration date), and I correct the error and try to resubmit the form, I get an error saying 'listener already attached for window undefined'

Please see the video below
https://drive.google.com/file/d/1oMB__ZCCT4diG6K-5qbbPvgAhO-9X4Cn/view

I used the exact code from the documentation ( Replace the Sandbox public key and transaction Token )
https://youcanpay.com/docs#testing_and_test_cards

Did I miss anything, or is there an issue with the ycpay.js file?

@ouarrtaha
Copy link

ouarrtaha commented Apr 2, 2023

+1 the same here.
is there no one maintaining this lib ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants