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

Currency Type Declaration #29

Open
sensiblefolk opened this issue Mar 23, 2020 · 2 comments
Open

Currency Type Declaration #29

sensiblefolk opened this issue Mar 23, 2020 · 2 comments

Comments

@sensiblefolk
Copy link

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.

@iamraphson
Copy link
Owner

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

@Quadriphobs1
Copy link
Contributor

@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

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

3 participants