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
In this gateway there is NO payment_token! Just post user with data to bank page
Usage :
After user payment, on your post back page :
from PyAnsar.API import AnsarAPI api = AnsarAPI('username', 'password')
POST data contains the keys res = api.verify('bank_reference_number') res[0] => True or False: Shows if the payment was success res[1] => Touple: (amount, bank_ref_code)
When Should I Reverse?
If the amount of paid price was not equal to invoice price you can reverse transaction. reverse_transaction(amount, ref_num, rev_num)