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

Handler method "onCloseModal" not fired after closing modal #56

Open
waspper opened this issue Aug 7, 2023 · 0 comments
Open

Handler method "onCloseModal" not fired after closing modal #56

waspper opened this issue Aug 7, 2023 · 0 comments

Comments

@waspper
Copy link

waspper commented Aug 7, 2023

Hello guys...

I've been trying to perform some actions every time the modal is closed (a custom implementation with https://checkout.epayco.co/checkout.js). I've configured the handler in following way:

var handler = ePayco.checkout.configure({
  key: 'MY_KEY',
  test: true
});

Then, I've added the mentioned method in following way:

handler.onCloseModal = function () {
  console.log('Closing dialog called!');
};

And finally, by calling handler.open(params), it is opened, and process works. But when I close the modal (by clicking on the "X" icon), then the method is not called. I remember it used to work in older version, or maybe before any change in API.

Any idea about this?

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

1 participant