From f73f9b958c71c39de4ce89966062881c47a2678a Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 11 Mar 2018 00:45:55 +0200 Subject: [PATCH] Working on tests --- app/Ninja/PaymentDrivers/BasePaymentDriver.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Ninja/PaymentDrivers/BasePaymentDriver.php b/app/Ninja/PaymentDrivers/BasePaymentDriver.php index 1601f9d3d789..dd8302d48128 100644 --- a/app/Ninja/PaymentDrivers/BasePaymentDriver.php +++ b/app/Ninja/PaymentDrivers/BasePaymentDriver.php @@ -266,6 +266,7 @@ class BasePaymentDriver public function completeOnsitePurchase($input = false, $paymentMethod = false) { + \Log::info('completeOnsitePurchase...'); $this->input = count($input) ? $input : false; $gateway = $this->gateway(); @@ -306,7 +307,7 @@ class BasePaymentDriver if ($this->isTwoStep() || request()->capture) { return; } - + \Log::info('starting paymnet...'); // prepare and process payment $data = $this->paymentDetails($paymentMethod); // TODO move to payment driver class @@ -333,6 +334,7 @@ class BasePaymentDriver // wrap up if ($response->isSuccessful() && $ref) { + \Log::info('creating paymnet...'); $payment = $this->createPayment($ref, $paymentMethod); // TODO move this to stripe driver