diff --git a/app/PaymentDrivers/BaseDriver.php b/app/PaymentDrivers/BaseDriver.php index 03ef21bb33d8..afba9ba52f23 100644 --- a/app/PaymentDrivers/BaseDriver.php +++ b/app/PaymentDrivers/BaseDriver.php @@ -241,7 +241,7 @@ class BaseDriver extends AbstractPaymentDriver event(new PaymentWasCreated($payment, $payment->company, Ninja::eventVars())); - (new BillingSubscriptionService)->completePurchase($this->payment_hash); + //(new BillingSubscriptionService)->completePurchase($this->payment_hash); return $payment->service()->applyNumber()->save(); } diff --git a/database/migrations/2021_03_20_033751_add_invoice_id_to_client_subscriptions_table.php b/database/migrations/2021_03_20_033751_add_invoice_id_to_client_subscriptions_table.php index 18e1e7241a42..1bf3e9c397cd 100644 --- a/database/migrations/2021_03_20_033751_add_invoice_id_to_client_subscriptions_table.php +++ b/database/migrations/2021_03_20_033751_add_invoice_id_to_client_subscriptions_table.php @@ -15,7 +15,7 @@ class AddInvoiceIdToClientSubscriptionsTable extends Migration { Schema::table('client_subscriptions', function (Blueprint $table) { $table->unsignedInteger('invoice_id')->nullable(); - + $table->unsignedInteger('quantity')->default(1); $table->foreign('invoice_id')->references('id')->on('invoices')->onDelete('cascade')->onUpdate('cascade'); }); }