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

Realex Embedded instance is not being destoyed. #31

Open
heinrich-fresh opened this issue Mar 11, 2020 · 0 comments
Open

Realex Embedded instance is not being destoyed. #31

heinrich-fresh opened this issue Mar 11, 2020 · 0 comments

Comments

@heinrich-fresh
Copy link

So we have a Embedded Hpp solution that is inside a modal window.

Current process is:

  • Open modal
  • Click on payment, this calls realex init and creates a transaction in our db
  • Do the payment which posts the result a responseurl that contains a parameter of transaction id so we can save the realex response in the db.
  • If the payment declined you have the option to process the payment again which calls init again to create the iframe.

So the responseurl does not seem to refresh if the transaction got declined. So then it updates the old transaction in our database because the latest call to init Realex did not update the url.

We also found that if you call init and you close the modal and open it up again and process the payment. Both instances of realex seem to do the post to the responseurl.

So it looks like on init the previous instance that was created is not being destroyed.

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