react-ravepayment icon indicating copy to clipboard operation
react-ravepayment copied to clipboard

Does not allow for dynamically adding amount

Open king-d-dev opened this issue 4 years ago • 1 comments

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.

king-d-dev avatar Jun 30 '20 23:06 king-d-dev

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

aberba avatar Oct 13 '20 22:10 aberba