From 2221768e980231414f84512c96c8fa6ec02a157f Mon Sep 17 00:00:00 2001 From: Mahdi IDea <96rajabi@gmail.com> Date: Wed, 18 Sep 2019 13:54:50 +0430 Subject: [PATCH] work with laravel 6 --- README.md | 8 ++--- ...3213_create_gateway_transactions_table.php | 6 ++-- src/Asanpardakht/Asanpardakht.php | 6 ++-- src/Asanpardakht/AsanpardakhtException.php | 4 +-- src/Enum.php | 2 +- src/Exceptions/BankException.php | 2 +- .../ConfigFileNotFoundException.php | 2 +- src/Exceptions/GatewayException.php | 2 +- src/Exceptions/InvalidRequestException.php | 2 +- .../NotFoundTransactionException.php | 2 +- src/Exceptions/PortNotFoundException.php | 2 +- src/Exceptions/RetryException.php | 2 +- src/Gateway.php | 4 +-- src/GatewayResolver.php | 30 +++++++++---------- src/GatewayServiceProvider.php | 6 ++-- src/GatewayServiceProviderLaravel4.php | 2 +- src/GatewayServiceProviderLaravel5.php | 8 ++--- src/JahanPay/JahanPay.php | 8 ++--- src/JahanPay/JahanPayException.php | 4 +-- src/Mellat/Mellat.php | 8 ++--- src/Mellat/MellatException.php | 4 +-- src/Parsian/Parsian.php | 6 ++-- src/Parsian/ParsianErrorException.php | 4 +-- src/Parsian/ParsianResult.php | 2 +- src/Pasargad/Parser.php | 2 +- src/Pasargad/Pasargad.php | 10 +++---- src/Pasargad/PasargadErrorException.php | 4 +-- src/Pasargad/PasargadResult.php | 2 +- src/Pasargad/RSA.php | 2 +- src/Pasargad/RSAProcessor.php | 2 +- src/Payir/Payir.php | 8 ++--- src/Payir/PayirReceiveException.php | 4 +-- src/Payir/PayirSendException.php | 4 +-- src/Payline/Payline.php | 8 ++--- src/Payline/PaylineReceiveException.php | 4 +-- src/Payline/PaylineSendException.php | 4 +-- src/Paypal/Paypal.php | 12 ++++---- src/Paypal/PaypalException.php | 4 +-- src/PortAbstract.php | 4 +-- src/PortInterface.php | 2 +- src/Sadad/Sadad.php | 6 ++-- src/Sadad/SadadException.php | 4 +-- src/Sadad/SadadResult.php | 2 +- src/Saman/Saman.php | 6 ++-- src/Saman/SamanException.php | 4 +-- src/Zarinpal/Zarinpal.php | 8 ++--- src/Zarinpal/ZarinpalException.php | 4 +-- 47 files changed, 118 insertions(+), 118 deletions(-) diff --git a/README.md b/README.md index b1c7864..a42fe95 100644 --- a/README.md +++ b/README.md @@ -35,18 +35,18 @@ STEP 2 : Add `provider` and `facade` in config/app.php 'providers' => [ ... - Larabookir\Gateway\GatewayServiceProvider::class, // <-- add this line at the end of provider array + MahdiIDea\Gateway\GatewayServiceProvider::class, // <-- add this line at the end of provider array ], 'aliases' => [ ... - 'Gateway' => Larabookir\Gateway\Gateway::class, // <-- add this line at the end of aliases array + 'Gateway' => MahdiIDea\Gateway\Gateway::class, // <-- add this line at the end of aliases array ] Step 3: - php artisan vendor:publish --provider=Larabookir\Gateway\GatewayServiceProvider + php artisan vendor:publish --provider=MahdiIDea\Gateway\GatewayServiceProvider Step 4: @@ -105,7 +105,7 @@ and in your callback : // تراکنش با موفقیت سمت بانک تایید گردید // در این مرحله عملیات خرید کاربر را تکمیل میکنیم - } catch (\Larabookir\Gateway\Exceptions\RetryException $e) { + } catch (\MahdiIDea\Gateway\Exceptions\RetryException $e) { // تراکنش قبلا سمت بانک تاییده شده است و // کاربر احتمالا صفحه را مجددا رفرش کرده است diff --git a/migrations/2016_05_02_193213_create_gateway_transactions_table.php b/migrations/2016_05_02_193213_create_gateway_transactions_table.php index 1646456..4f1be27 100644 --- a/migrations/2016_05_02_193213_create_gateway_transactions_table.php +++ b/migrations/2016_05_02_193213_create_gateway_transactions_table.php @@ -2,9 +2,9 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; -use Larabookir\Gateway\PortAbstract; -use Larabookir\Gateway\GatewayResolver; -use Larabookir\Gateway\Enum; +use MahdiIDea\Gateway\PortAbstract; +use MahdiIDea\Gateway\GatewayResolver; +use MahdiIDea\Gateway\Enum; class CreateGatewayTransactionsTable extends Migration { diff --git a/src/Asanpardakht/Asanpardakht.php b/src/Asanpardakht/Asanpardakht.php index 52c5a16..80af0c4 100644 --- a/src/Asanpardakht/Asanpardakht.php +++ b/src/Asanpardakht/Asanpardakht.php @@ -1,11 +1,11 @@ app); diff --git a/src/GatewayServiceProviderLaravel4.php b/src/GatewayServiceProviderLaravel4.php index 7194ab9..21bb2b1 100644 --- a/src/GatewayServiceProviderLaravel4.php +++ b/src/GatewayServiceProviderLaravel4.php @@ -1,6 +1,6 @@ publishes([ $config => config_path('gateway.php'), ], 'config'); - // php artisan vendor:publish --provider=Larabookir\Gateway\GatewayServiceProvider --tag=migrations + // php artisan vendor:publish --provider=MahdiIDea\Gateway\GatewayServiceProvider --tag=migrations $this->publishes([ $migrations => base_path('database/migrations') ], 'migrations'); @@ -47,7 +47,7 @@ public function boot() $this->loadViewsFrom($views, 'gateway'); - // php artisan vendor:publish --provider=Larabookir\Gateway\GatewayServiceProvider --tag=views + // php artisan vendor:publish --provider=MahdiIDea\Gateway\GatewayServiceProvider --tag=views $this->publishes([ $views => base_path('resources/views/vendor/gateway'), ], 'views'); diff --git a/src/JahanPay/JahanPay.php b/src/JahanPay/JahanPay.php index 0f64146..b536910 100644 --- a/src/JahanPay/JahanPay.php +++ b/src/JahanPay/JahanPay.php @@ -1,12 +1,12 @@