Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

AN_STATUS_EXPIRE fix.

  • Loading branch information...
commit 095affdedc197432e0956e6d50f2bf01aef2b1cd 1 parent 224abcd
ethem authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 enrol/authorize/action.php
4 enrol/authorize/action.php
View
@@ -175,7 +175,7 @@ function authorizenet_action(&$order, &$message, &$reason, &$extra, $action=AN_A
$timediff = $timenowsettle - (30 * 3600 * 24);
$timecreatedsettle = getsettletime($order->timecreated);
if ($timecreatedsettle < $timediff) {
- $order->status = AN_STATUS_EXPIRED;
+ $order->status = AN_STATUS_EXPIRE;
$message = "Transaction must be captured within 30 days. EXPIRED!";
return false;
}
@@ -225,7 +225,7 @@ function authorizenet_action(&$order, &$message, &$reason, &$extra, $action=AN_A
$timecreatedsettle = getsettletime($order->timecreated);
if ($timecreatedsettle < $timediff) {
$message = "Auth_only transaction must be voided within 30 days. EXPIRED!";
- $order->status = AN_STATUS_EXPIRED;
+ $order->status = AN_STATUS_EXPIRE;
return false;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.