PHP code example of amirmehr / mehr-gate
1. Go to this page and download the library: Download amirmehr/mehr-gate library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
amirmehr / mehr-gate example snippets
$result_gate = MehrGate::request( 2000, 'توضیحات', '09185001010' );
if ( isset( $result_gate["Status"] ) && $result_gate["Status"] == 100 ) {
$result_gate["Authority"];
$result_gate["StartPay"];
} else {
$result_gate["Status"];
$result_gate["Message"];
}