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

Allow to destroy existing hosted card field #48

Closed
ravinderk opened this issue Oct 5, 2020 · 1 comment
Closed

Allow to destroy existing hosted card field #48

ravinderk opened this issue Oct 5, 2020 · 1 comment

Comments

@ravinderk
Copy link

As per requirement, we re-render smart buttons and hosted card fields when currency changes because PayPal SDK only processes currency which we pass in query param. The smart button can be destroyed by calling the close function but I did not find a similar function for hosted card fields.

GitHub Discussion: #44 (comment)

Can you suggest the best way to re-render the hosted card field without reloading the whole page?

@ravinderk
Copy link
Author

I resolved this issue by preventing duplicate events on form submission.

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