descom/omnipay-offline-dummy

用于测试的 Omnipay 离线模拟网关

1.4.0 2024-04-18 13:59 UTC

README

用于测试的 Omnipay 离线模拟网关

tests analyse style-fix

安装

composer require descom/omnipay-offline-dummy

基本用法

创建购买请求

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