react-ravepayment
react-ravepayment copied to clipboard
Currency Type Declaration
Your union type declaration for Currency has no string and so it cannot be passed as a config parameter in the object declaration to useRavePayment hook.
@sensiblefolk i don't get. Please share your sample code. Thanks
@sensiblefolk The currency type declaration covers all currencies accepted by flutterwave and to avoid passing in a un-accepted currency. And it would work well if you are using typescript or flow which would give you a suggestion of the accepted currencies however would still work if you do use pure js. See the attachment below.