Welcome to Bank Mellat Python API
This code will connect your web application to Iran Bank Mellat E-Payment Gatewy.
Install :
Just download zip or tar file and include it in your code!
supported methods :
bpPayRequest
bpVerifyRequest
bpSettleRequest
bpInquiryRequest
bpReversalRequest
Usage:
According to Bank Documents, you need to these steps :
1- Get a payment ref by calling bpPayRequest
and args
2- Redirect user with POST method to Bank page => http://123123.shaparak.ir/payment?RefId=
3- User will return to your website after payment
4- Verify State by calling : bpVerifyRequest
5- If Result is True and Res Code is 0, Then prepare for settle by bpSettleRequest
More info : Bank Documentations
Saeed Auditore