1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Corret class instantiate

This commit is contained in:
Benjamin Beganović 2021-05-04 14:56:30 +02:00
parent c22bf5bd10
commit e0f83af653
2 changed files with 7 additions and 1 deletions

View File

@ -94,6 +94,12 @@ class Gateway extends StaticModel
case 39:
return [GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true]]; //Checkout
break;
case 50:
return [
GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true],
GatewayType::PAYPAL => ['refund' => true, 'token_billing' => true]
];
break;
default:
return [];
break;

View File

@ -41,7 +41,7 @@ class BraintreePaymentDriver extends BaseDriver
public static $methods = [
GatewayType::CREDIT_CARD => CreditCard::class,
GatewayType::PAYPAL,
GatewayType::PAYPAL => PayPal::class,
];
const SYSTEM_LOG_TYPE = SystemLog::TYPE_BRAINTREE;