From a03e89e30ba7874d25bd604ff2f1dc280dde1c79 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 16 Apr 2019 14:31:26 -0400 Subject: [PATCH] Need to return the response from square Need to get some data back from square when doing payments. --- lib/paymentProcessors/Square/paymentGateway.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/paymentProcessors/Square/paymentGateway.php b/lib/paymentProcessors/Square/paymentGateway.php index 07c29675..a86be2b5 100755 --- a/lib/paymentProcessors/Square/paymentGateway.php +++ b/lib/paymentProcessors/Square/paymentGateway.php @@ -303,6 +303,7 @@ class PaymentGateway # a 200-level HTTP code. This block catches any exceptions that occur from the request. try { $result = $transactionApi->charge( $locationId, $txRequest ); + // echo '
$result: ' . print_r( $result, true ) . '
'; $resp = array( 'gateway' => 'Square', 'status' => 1, @@ -311,6 +312,7 @@ class PaymentGateway 'transId' => '', 'refId' => $refId, 'description' => '
200 response: ' . print_r( $result, true) . '
', + 'response' => $result, ); return $resp; } catch ( \SquareConnect\ApiException $e ) { -- 2.17.1