From ec374eec63c274cabc7b16cbaf456ad0baf3f485 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 25 Feb 2022 15:28:42 +1100 Subject: [PATCH] Clean UP --- app/Jobs/Account/CreateAccount.php | 1 - app/PaymentDrivers/WePay/CreditCard.php | 1 - 2 files changed, 2 deletions(-) diff --git a/app/Jobs/Account/CreateAccount.php b/app/Jobs/Account/CreateAccount.php index 7660d9823a98..06278547d880 100644 --- a/app/Jobs/Account/CreateAccount.php +++ b/app/Jobs/Account/CreateAccount.php @@ -86,7 +86,6 @@ class CreateAccount $sp794f3f->hosted_company_count = config('ninja.quotas.free.max_companies'); // $sp794f3f->trial_started = now(); // $sp794f3f->trial_plan = 'pro'; - } $sp794f3f->save(); diff --git a/app/PaymentDrivers/WePay/CreditCard.php b/app/PaymentDrivers/WePay/CreditCard.php index 19b1691d1434..32e91505ee44 100644 --- a/app/PaymentDrivers/WePay/CreditCard.php +++ b/app/PaymentDrivers/WePay/CreditCard.php @@ -321,7 +321,6 @@ https://developer.wepay.com/api/api-calls/checkout $amount = array_sum(array_column($this->wepay_payment_driver->payment_hash->invoices(), 'amount')) + $this->wepay_payment_driver->payment_hash->fee_total; - $app_fee = (config('ninja.wepay.fee_cc_multiplier') * $amount) + config('ninja.wepay.fee_fixed'); // charge the credit card $response = $this->wepay_payment_driver->wepay->request('checkout/create', array(