Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.14 KB

README.md

File metadata and controls

33 lines (23 loc) · 1.14 KB

Omnipay:: Offline dummy

Omnipay Offline Dummy Gateway for testing

tests analyse style-fix

Instalation

composer require descom/omnipay-offline-dummy

Basic Usage

Create purchase request

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();