iamraphson / react-paystack

ReactJS library for implementing paystack payment gateway
https://www.npmjs.com/package/react-paystack
MIT License
445 stars 159 forks source link

Fix: Use callback declaration from types #83

Open epikoder opened 1 year ago

epikoder commented 1 year ago

PaystackConsumer and PaystackContext are using () =>void for onSuccess instead of callback from types

Nelwhix commented 1 year ago

I was even thinking, for better typesafety, The type should be (reference: string) => void. What do you think?