mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Support for SYSTEM_LOG_TYPE in:
- Authorize.net - Stripe - PayPal
This commit is contained in:
parent
49e4e77290
commit
fca1d94afe
@ -17,6 +17,7 @@ use App\Models\GatewayType;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\Payment;
|
||||
use App\Models\PaymentHash;
|
||||
use App\Models\SystemLog;
|
||||
use App\PaymentDrivers\Authorize\AuthorizeCreditCard;
|
||||
use App\PaymentDrivers\Authorize\AuthorizePaymentMethod;
|
||||
use App\PaymentDrivers\Authorize\ChargePaymentProfile;
|
||||
@ -43,6 +44,8 @@ class AuthorizePaymentDriver extends BaseDriver
|
||||
GatewayType::CREDIT_CARD => AuthorizeCreditCard::class,
|
||||
];
|
||||
|
||||
const SYSTEM_LOG_TYPE = SystemLog::TYPE_AUTHORIZE;
|
||||
|
||||
public function setPaymentMethod($payment_method_id)
|
||||
{
|
||||
$class = self::$methods[$payment_method_id];
|
||||
|
@ -84,6 +84,8 @@ class PayPalExpressPaymentDriver extends BasePaymentDriver
|
||||
];
|
||||
}
|
||||
|
||||
const SYSTEM_LOG_TYPE = SystemLog::TYPE_PAYPAL;
|
||||
|
||||
/**
|
||||
* Processes the payment with this gateway.
|
||||
*
|
||||
|
@ -68,6 +68,8 @@ class StripePaymentDriver extends BaseDriver
|
||||
GatewayType::SEPA => 1, // TODO
|
||||
];
|
||||
|
||||
const SYSTEM_LOG_TYPE = SystemLog::TYPE_STRIPE;
|
||||
|
||||
/**
|
||||
* Initializes the Stripe API.
|
||||
* @return void
|
||||
|
Loading…
x
Reference in New Issue
Block a user