descom / omnipay-offline-dummy
Omnipay Offline Dummy Gateway for testing
Installs: 4 890
Dependents: 1
Suggesters: 1
Security: 0
Stars: 0
Watchers: 0
Forks: 2
Open Issues: 0
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.4
- illuminate/contracts: ^9.25|^10.0|^11.0
- league/omnipay: ^3.2
- omnipay/common: ^3.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.10
- guzzlehttp/psr7: ^1
- nunomaduro/larastan: ^2.1
- omnipay/tests: ^4.1
- orchestra/testbench: ^7.0|^8.0|^9.0
- phpstan/phpstan: ^1.8
- phpunit/phpunit: ^9.5|^10.0|^10.5
This package is auto-updated.
Last update: 2024-12-03 09:18:19 UTC
README
Omnipay Offline Dummy Gateway for testing
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();