Need to get some data back from square when doing payments.
# a 200-level HTTP code. This block catches any exceptions that occur from the request.
try {
$result = $transactionApi->charge( $locationId, $txRequest );
+ // echo '<pre>$result: ' . print_r( $result, true ) . '</pre>';
$resp = array(
'gateway' => 'Square',
'status' => 1,
'transId' => '',
'refId' => $refId,
'description' => '<pre>200 response: ' . print_r( $result, true) . '</pre>',
+ 'response' => $result,
);
return $resp;
} catch ( \SquareConnect\ApiException $e ) {