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

Currency Type Declaration

Open sensiblefolk opened this issue 4 years ago • 2 comments

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 avatar Mar 23 '20 13:03 sensiblefolk

@sensiblefolk i don't get. Please share your sample code. Thanks

iamraphson avatar Mar 26 '20 11:03 iamraphson

@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.

Screenshot 2020-03-26 12 44 59

Quadriphobs1 avatar Mar 26 '20 11:03 Quadriphobs1