descom/omnipay-offline-dummy

Omnipay Offline Dummy Gateway for testing

1.4.0 2024-04-18 13:59 UTC

README

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