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

Does not allow for dynamically adding amount #37

Open
king-d-dev opened this issue Jun 30, 2020 · 1 comment
Open

Does not allow for dynamically adding amount #37

king-d-dev opened this issue Jun 30, 2020 · 1 comment

Comments

@king-d-dev
Copy link

since the config object is used by the useRavePayment hook, there is no way to change the amount after the hook is called. And we cant also defer the calling of the hook until we have accepted the amount from the user since react hooks are supposed to be called at the top level of the functional component. Please let me know if you need more details to understand my context.

@aberba
Copy link

aberba commented Oct 13, 2020

How about prompting user for the amount before showing the Pay button?

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