diff --git a/README.md b/README.md index 0b0e113..ab288be 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,12 @@ -# Omnipay:: Offline dummy +# Omnipay:: Bank transfer -Omnipay Offline Dummy Gateway for testing +Omnipay bank Transfer Gateway -[![tests](https://github.com/descom-es/omnipay-offline-dummy/actions/workflows/tests.yml/badge.svg)](https://github.com/descom-es/omnipay-offline-dummy/actions/workflows/tests.yml) -[![analyse](https://github.com/descom-es/omnipay-offline-dummy/actions/workflows/analyse.yml/badge.svg)](https://github.com/descom-es/omnipay-offline-dummy/actions/workflows/analyse.yml) -[![style-fix](https://github.com/descom-es/omnipay-offline-dummy/actions/workflows/style-fix.yml/badge.svg)](https://github.com/descom-es/omnipay-offline-dummy/actions/workflows/style-fix.yml) ## Instalation ```sh -composer require descom/omnipay-offline-dummy +composer require descom/omnipay-bank-transfer ``` ## Basic Usage @@ -19,7 +16,7 @@ composer require descom/omnipay-offline-dummy ```php use Omnipay\Omnipay; -$gateway = Omnipay::create('OfflineDummy'); +$gateway = Omnipay::create('BankTransfer'); $request = $gateway->purchase([ 'amount' => '12.00', diff --git a/composer.json b/composer.json index 656363e..26101ef 100644 --- a/composer.json +++ b/composer.json @@ -1,16 +1,16 @@ { - "name": "descom/omnipay-offline-dummy", - "description": "Omnipay Offline Dummy Gateway for testing", + "name": "descom/omnipay-bank-transfer", + "description": "Omnipay Bank Transfer Gateway", "type": "library", "license": "MIT", "autoload": { "psr-4": { - "Omnipay\\OfflineDummy\\": "src/" + "Omnipay\\BankTransfer\\": "src/" } }, "autoload-dev": { "psr-4": { - "Omnipay\\OfflineDummy\\Tests\\": "tests/" + "Omnipay\\BankTransfer\\Tests\\": "tests/" } }, "authors": [ @@ -40,8 +40,8 @@ "extra": { "laravel": { "providers": [ - "Omnipay\\OfflineDummy\\App\\AppServiceProvider" + "Omnipay\\BankTransfer\\App\\AppServiceProvider" ] } } -} +} \ No newline at end of file diff --git a/phpstan.neon.dist b/phpstan.neon.dist index c27661a..0af358a 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -10,7 +10,4 @@ parameters: # The level 9 is the highest level level: 5 - checkMissingIterableValueType: false - - ignoreErrors: - - '#Property Omnipay\\OfflineDummy\\Tests.* \(Omnipay\\OfflineDummy\\Gateway\) does not accept Omnipay\\Common\\GatewayInterface.#' \ No newline at end of file + checkMissingIterableValueType: false \ No newline at end of file diff --git a/resources/views/payment.blade.php b/resources/views/payment.blade.php index cda5a37..13d095d 100644 --- a/resources/views/payment.blade.php +++ b/resources/views/payment.blade.php @@ -100,9 +100,10 @@
-

Método de pago de pruebas

+

Método de pago de transferencia bancaria

- Este método de pago ha sido desarrollado por Descom para testear los procesos de compra. + Este método de pago ha sido desarrollado por Descom para realizar procesos de compra por transferencia + bancaria.

@@ -133,4 +134,4 @@
- \ No newline at end of file + diff --git a/src/App/App.php b/src/App/App.php index fa6effe..0b3bc19 100644 --- a/src/App/App.php +++ b/src/App/App.php @@ -1,6 +1,6 @@ registerRouters(); - $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'omnipay-offline-dummy'); + $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'omnipay-bank-transfer'); } private function registerRouters(): void diff --git a/src/App/Http/Controllers/PaymentController.php b/src/App/Http/Controllers/PaymentController.php index 7b0dfc0..fbeacb7 100644 --- a/src/App/Http/Controllers/PaymentController.php +++ b/src/App/Http/Controllers/PaymentController.php @@ -1,10 +1,10 @@ 'required|numeric', ]); - return view('omnipay-offline-dummy::payment', [ + return view('omnipay-bank-transfer::payment', [ 'transactionId' => $request->input('transaction_id'), 'description' => $request->input('description'), 'amount' => $request->input('amount'), diff --git a/src/App/Http/Controllers/PaymentProcessController.php b/src/App/Http/Controllers/PaymentProcessController.php index 1d52404..858592a 100644 --- a/src/App/Http/Controllers/PaymentProcessController.php +++ b/src/App/Http/Controllers/PaymentProcessController.php @@ -1,6 +1,6 @@ completePurchase($request->all())->send(); diff --git a/src/Gateway.php b/src/Gateway.php index 205d3a3..d7e4b2b 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -1,16 +1,16 @@ gateway = Omnipay::create('OfflineDummy'); + $this->gateway = Omnipay::create('BankTransfer'); } public function testPurchase() diff --git a/tests/CompletedPurchaseTest.php b/tests/CompletedPurchaseTest.php index fe52a34..27827dd 100644 --- a/tests/CompletedPurchaseTest.php +++ b/tests/CompletedPurchaseTest.php @@ -1,11 +1,11 @@ gateway = Omnipay::create('OfflineDummy'); + $this->gateway = Omnipay::create('BankTransfer'); } public function testCompletedPurchaseRequest() diff --git a/tests/GatewayTest.php b/tests/GatewayTest.php index 17603f5..94c7863 100644 --- a/tests/GatewayTest.php +++ b/tests/GatewayTest.php @@ -1,8 +1,8 @@ gateway = Omnipay::create('OfflineDummy'); + $this->gateway = Omnipay::create('BankTransfer'); } public function testPurchaseRequest() @@ -49,10 +49,10 @@ public function testPurchaseRedirect() $responseHtml = $this->gateway ->purchase( [ - 'amount' => '12.00', - 'description' => 'Test purchase', - 'transactionId' => 1, - ] + 'amount' => '12.00', + 'description' => 'Test purchase', + 'transactionId' => 1, + ] )->send() ->getRedirectResponse() ->getContent(); diff --git a/tests/TestCase.php b/tests/TestCase.php index 915f6c8..d04d732 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -1,8 +1,8 @@