PHP code example of shibanashiqc / nbo-payment-gateway-php
1. Go to this page and download the library: Download shibanashiqc/nbo-payment-gateway-php 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/ */
shibanashiqc / nbo-payment-gateway-php example snippets
use Shibanashiqc\NboPaymentGatewayPhp\Nbo;
$request = new Nbo('IPAYlCR6qZF7q6w', 'TEST123456@', '34343434343497');
// $request->client->setURL('production_url_get_from_nbo_dashboard'); // if you got production keys the enable this
$request->setErrorURL('http://localhost:8000/error');
$request->setResponseURL('http://localhost:8000/response');
$result = $request->getPaymentRequest(20, 'Sj', '458485747', '[email protected]', strval(rand(100000, 999999)));
echo $result->redirectUrl();
composer