Example #1
0
 public function __construct()
 {
     parent::__construct();
 }
Example #2
0
            }
            if (DEBUG == true) {
                error_log(date('[Y-m-d H:i e] ') . "Verified IPN: {$req} " . PHP_EOL, 3, LOG_FILE);
            }
        } else {
            if (strcmp($res, "INVALID") == 0) {
                // log for manual investigation
                // Add business logic here which deals with invalid IPN messages
                if (DEBUG == true) {
                    error_log(date('[Y-m-d H:i e] ') . "Invalid IPN: {$req}" . PHP_EOL, 3, LOG_FILE);
                }
            }
        }
    }
}
$paycontroller = new PayController();
if (isset($_GET['m'])) {
    $method = $_GET['m'];
} else {
    $method = "index";
}
switch ($method) {
    case "index":
        $paycontroller->index();
        break;
    default:
        $paycontroller->index();
        break;
}
?>