From: Steve Sutton Date: Tue, 21 May 2019 12:15:12 +0000 (-0400) Subject: Payment processor update X-Git-Tag: v2.12.4~1^2~19 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=bf2e7e1d5a8a9a88a1a99ca745add32311cdb09a;p=WP-Plugins%2Fglm-member-db.git Payment processor update check for nonce --- diff --git a/lib/paymentProcessors/Square/paymentGateway.php b/lib/paymentProcessors/Square/paymentGateway.php index a86be2b5..78d766f2 100755 --- a/lib/paymentProcessors/Square/paymentGateway.php +++ b/lib/paymentProcessors/Square/paymentGateway.php @@ -219,7 +219,7 @@ class PaymentGateway # Fail if the card form didn't send a value for `nonce` to the server $nonce = $_POST['nonce']; - if (is_null($nonce)) { + if (!$nonce || is_null($nonce)) { $resp = array( 'gateway' => 'Square', 'status' => 2, @@ -336,7 +336,7 @@ class PaymentGateway 'authCode' => '', 'transId' => '', 'refId' => $refId, - 'description' => $description, + 'description' => $description,//.'
'.print_r($responseBody, true).'
', ); return $resp; }