mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
uncomment the initialization of billing service
This commit is contained in:
parent
44bf716fc9
commit
540f5b647a
@ -241,11 +241,11 @@ class BaseDriver extends AbstractPaymentDriver
|
||||
|
||||
event(new PaymentWasCreated($payment, $payment->company, Ninja::eventVars()));
|
||||
|
||||
// if (property_exists($this->payment_hash->data, 'billing_context')) {
|
||||
// $billing_subscription = \App\Models\BillingSubscription::find($this->payment_hash->data->billing_context->billing_subscription_id);
|
||||
//
|
||||
// (new BillingSubscriptionService($billing_subscription))->completePurchase($this->payment_hash);
|
||||
// }
|
||||
if (property_exists($this->payment_hash->data, 'billing_context')) {
|
||||
$billing_subscription = \App\Models\BillingSubscription::find($this->payment_hash->data->billing_context->billing_subscription_id);
|
||||
|
||||
(new BillingSubscriptionService($billing_subscription))->completePurchase($this->payment_hash);
|
||||
}
|
||||
|
||||
return $payment->service()->applyNumber()->save();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user