From 8e62c5ac51ff0b010d2bbc5f98d47bafd316eae8 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 20 Jun 2023 23:10:25 +1000 Subject: [PATCH] Minor fixes --- app/Models/Gateway.php | 5 +++++ .../2023_06_20_123355_add_paypal_rest_payment_driver.php | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Models/Gateway.php b/app/Models/Gateway.php index 56603bf3f05b..9fde400732e4 100644 --- a/app/Models/Gateway.php +++ b/app/Models/Gateway.php @@ -190,6 +190,11 @@ class Gateway extends StaticModel GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true], // Forte GatewayType::BANK_TRANSFER => ['refund' => true, 'token_billing' => true, 'webhooks' => [' ']], ]; + case 60: + return [ + GatewayType::PAYPAL => ['refund' => false, 'token_billing' => false], + ]; //Paypal + default: return []; } diff --git a/database/migrations/2023_06_20_123355_add_paypal_rest_payment_driver.php b/database/migrations/2023_06_20_123355_add_paypal_rest_payment_driver.php index d3d4b2a1c369..df40da51c578 100644 --- a/database/migrations/2023_06_20_123355_add_paypal_rest_payment_driver.php +++ b/database/migrations/2023_06_20_123355_add_paypal_rest_payment_driver.php @@ -23,7 +23,6 @@ return new class extends Migration $fields->secret = ""; $fields->testMode = false; - $paypal = new Gateway; $paypal->id = 60; $paypal->name = 'PayPal REST';