From: Steve Sutton Date: Tue, 16 Apr 2019 18:31:26 +0000 (-0400) Subject: Need to return the response from square X-Git-Tag: v2.12.2^2~12 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a03e89e30ba7874d25bd604ff2f1dc280dde1c79;p=WP-Plugins%2Fglm-member-db.git Need to return the response from square Need to get some data back from square when doing payments. --- 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 ) {