Skip to content

Commit

Permalink
Update pm_nochex.php
Browse files Browse the repository at this point in the history
  • Loading branch information
NochexDevTeam committed Apr 17, 2023
1 parent 33708c0 commit 959bb1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/com_jshopping/payments/pm_nochex/pm_nochex.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function checkTransaction($params, $order, $act){

$postvars = http_build_query($_POST);

$url = "https://www.nochex.com/apcnet/apc.aspx";
$url = "https://secure.nochex.com/apc/apc.aspx";

// Curl code to post variables back
$ch = curl_init(); // Initialise the curl tranfer
Expand All @@ -48,7 +48,7 @@ function checkTransaction($params, $order, $act){
$debug .= "\r\nRESPONSE:\r\n$output";

//If statement
if (!strstr($output, "AUTHORISED")) { // searches response to see if AUTHORISED is present if it isn’t a failure message is displayed
if (!strstr($output, "AUTHORISED")) { // searches response to see if AUTHORISED is present if it isn’t a failure message is displayed
return array(3, 'Status Failed. Order ID '.$order->order_id,$output,$_POST);
saveToLog("payment.log", "Nochex failed: ".$order->order_id);
}
Expand Down Expand Up @@ -199,4 +199,4 @@ function getUrlParams($ps_params){

}

?>
?>

0 comments on commit 959bb1a

Please sign in to comment.