react-ravepayment
react-ravepayment copied to clipboard
Does not allow for dynamically adding amount
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.
How about prompting user for the amount before showing the Pay button?