Codeigniter library for Iranian bank, Mellat.
Copy Mellat.php
and nusoap
directory to application/libraries
of your own project.
First, load library:
$this->load->library('mellat');
second, set options:
$this->mellat->set_options(
$terminal = '',
$username = '',
$password = '',
$amount = 0,
$order = 0,
$callback = ''
);
For send data to bank:
$refid = $this->mellat->call_bank();
send user to bank:
$this->mellat->redirect_to_bank($refid);
verify user payment:
$this->mellat->verify_payment($order, $refid)
- Mahdi Majidzadeh (github)