uncomment the initialization of billing service

This commit is contained in:
Benjamin Beganović 2021-03-22 11:14:56 +01:00
parent 44bf716fc9
commit 540f5b647a

View File

@ -241,11 +241,11 @@ class BaseDriver extends AbstractPaymentDriver
event(new PaymentWasCreated($payment, $payment->company, Ninja::eventVars())); event(new PaymentWasCreated($payment, $payment->company, Ninja::eventVars()));
// if (property_exists($this->payment_hash->data, 'billing_context')) { if (property_exists($this->payment_hash->data, 'billing_context')) {
// $billing_subscription = \App\Models\BillingSubscription::find($this->payment_hash->data->billing_context->billing_subscription_id); $billing_subscription = \App\Models\BillingSubscription::find($this->payment_hash->data->billing_context->billing_subscription_id);
//
// (new BillingSubscriptionService($billing_subscription))->completePurchase($this->payment_hash); (new BillingSubscriptionService($billing_subscription))->completePurchase($this->payment_hash);
// } }
return $payment->service()->applyNumber()->save(); return $payment->service()->applyNumber()->save();
} }