1. Go to this page and download the library: Download n1ghtwind/otpsimplepay 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/ */
use Taki47\Otpsimplepay\SimplePayBack;
class PublicController extends Controller
{
public function PayBack(Request $request)
{
$simplePayBack = new SimplePayBack();
$result = array();
if (isset($request->r) && isset($request->s)) {
if ($simplePayBack->isBackSignatureCheck($request->r, $request->s)) {
$result = $simplePayBack->getRawNotification();
}
}
/**
* DO SOMETHING WITH $result ARRAY
*/
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.