diff --git a/app/PaymentDrivers/Stripe/Charge.php b/app/PaymentDrivers/Stripe/Charge.php index 38aa4d0b3d79..ca3668922e72 100644 --- a/app/PaymentDrivers/Stripe/Charge.php +++ b/app/PaymentDrivers/Stripe/Charge.php @@ -160,7 +160,7 @@ class Charge return false; $payment_method_type = $response->charges->data[0]->payment_method_details->card->brand; - info($payment_method_type); + //info($payment_method_type); $data = [ 'gateway_type_id' => $cgt->gateway_type_id, diff --git a/app/Repositories/PaymentRepository.php b/app/Repositories/PaymentRepository.php index 92ef24d24802..9e30c9f212f5 100644 --- a/app/Repositories/PaymentRepository.php +++ b/app/Repositories/PaymentRepository.php @@ -71,8 +71,6 @@ class PaymentRepository extends BaseRepository private function applyPayment(array $data, Payment $payment): ?Payment { -info(print_r($data,1)); - //check currencies here and fill the exchange rate data if necessary if (!$payment->id) { $this->processExchangeRates($data, $payment); @@ -149,10 +147,10 @@ info(print_r($data,1)); event(new PaymentWasCreated($payment, $payment->company, Ninja::eventVars())); -/*info("invoice totals = {$invoice_totals}"); -info("credit totals = {$credit_totals}"); -info("applied totals = " . array_sum(array_column($data['invoices'], 'amount'))); -*/ + /*info("invoice totals = {$invoice_totals}"); + info("credit totals = {$credit_totals}"); + info("applied totals = " . array_sum(array_column($data['invoices'], 'amount'))); + */ //$invoice_totals -= $credit_totals; ////$payment->amount = $invoice_totals; //creates problems when setting amount like this.