You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 in const 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 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: