Support for SYSTEM_LOG_TYPE in:

- Authorize.net
- Stripe
- PayPal
This commit is contained in:
Benjamin Beganović 2020-11-16 13:36:29 +01:00
parent 49e4e77290
commit fca1d94afe
3 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,7 @@ use App\Models\GatewayType;
use App\Models\Invoice; use App\Models\Invoice;
use App\Models\Payment; use App\Models\Payment;
use App\Models\PaymentHash; use App\Models\PaymentHash;
use App\Models\SystemLog;
use App\PaymentDrivers\Authorize\AuthorizeCreditCard; use App\PaymentDrivers\Authorize\AuthorizeCreditCard;
use App\PaymentDrivers\Authorize\AuthorizePaymentMethod; use App\PaymentDrivers\Authorize\AuthorizePaymentMethod;
use App\PaymentDrivers\Authorize\ChargePaymentProfile; use App\PaymentDrivers\Authorize\ChargePaymentProfile;
@ -43,6 +44,8 @@ class AuthorizePaymentDriver extends BaseDriver
GatewayType::CREDIT_CARD => AuthorizeCreditCard::class, GatewayType::CREDIT_CARD => AuthorizeCreditCard::class,
]; ];
const SYSTEM_LOG_TYPE = SystemLog::TYPE_AUTHORIZE;
public function setPaymentMethod($payment_method_id) public function setPaymentMethod($payment_method_id)
{ {
$class = self::$methods[$payment_method_id]; $class = self::$methods[$payment_method_id];

View File

@ -84,6 +84,8 @@ class PayPalExpressPaymentDriver extends BasePaymentDriver
]; ];
} }
const SYSTEM_LOG_TYPE = SystemLog::TYPE_PAYPAL;
/** /**
* Processes the payment with this gateway. * Processes the payment with this gateway.
* *

View File

@ -68,6 +68,8 @@ class StripePaymentDriver extends BaseDriver
GatewayType::SEPA => 1, // TODO GatewayType::SEPA => 1, // TODO
]; ];
const SYSTEM_LOG_TYPE = SystemLog::TYPE_STRIPE;
/** /**
* Initializes the Stripe API. * Initializes the Stripe API.
* @return void * @return void