-
Notifications
You must be signed in to change notification settings - Fork 152
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
Passing payment options #78
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I guess the pay stack hook can be better if we can pass in the payment options into whenever it called, as in
initializePayment(config)
as opposed to passing it into the hook directly when initializing it, as inconst initializePayment = usePaystackPayment(config)
.In practice you'll want to pass the payment options only when you're about to process the transaction because you don't know the email or amount to pay in advance.
I hope this idea is considered.
The text was updated successfully, but these errors were encountered: