andela-sjames / paystack-python

Python plugin for Paystack
https://pypi.python.org/pypi/paystackapi
MIT License
110 stars 44 forks source link

adding a callback_url #48

Closed nodebe closed 5 years ago

nodebe commented 5 years ago

How can I add a callback_url so that after payment, it redirects to the url function for verification. I am using flask

andela-sjames commented 5 years ago

From the docs https://developers.paystack.co/v2.0/reference pass in a callback_url argument with a value

e.g

Transaction.initialize(reference='reference', amount='amount', email='email'
                       callback_url="https://callback_url.com")

You can reference the docs to see other arguments to pass in as kwargs, I hope this helps.

andela-sjames commented 5 years ago

Closing this