Minor fixes

This commit is contained in:
David Bomba 2023-06-20 23:10:25 +10:00
parent 409aa60928
commit 8e62c5ac51
2 changed files with 5 additions and 1 deletions

View File

@ -190,6 +190,11 @@ class Gateway extends StaticModel
GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true], // Forte GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true], // Forte
GatewayType::BANK_TRANSFER => ['refund' => true, 'token_billing' => true, 'webhooks' => [' ']], GatewayType::BANK_TRANSFER => ['refund' => true, 'token_billing' => true, 'webhooks' => [' ']],
]; ];
case 60:
return [
GatewayType::PAYPAL => ['refund' => false, 'token_billing' => false],
]; //Paypal
default: default:
return []; return [];
} }

View File

@ -23,7 +23,6 @@ return new class extends Migration
$fields->secret = ""; $fields->secret = "";
$fields->testMode = false; $fields->testMode = false;
$paypal = new Gateway; $paypal = new Gateway;
$paypal->id = 60; $paypal->id = 60;
$paypal->name = 'PayPal REST'; $paypal->name = 'PayPal REST';