PHP code example of descom / omnipay-offline-dummy
1. Go to this page and download the library: Download descom/omnipay-offline-dummy 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/ */
descom / omnipay-offline-dummy example snippets
use Omnipay\Omnipay;
$gateway = Omnipay::create('OfflineDummy');
$request = $gateway->purchase([
'amount' => '12.00',
'description' => 'Test purchase',
'transactionId' => 1,
'url_notify' => 'http://example.com/payment/notify',
'url_return' => 'http://example.com/payment/return',
])->send();
$response->redirect();