Create ordercomplete.pgkcp.php

This commit is contained in:
Namhyeon Go 2018-09-03 02:31:48 +09:00 committed by GitHub
parent 1ce53d0fb7
commit 396b638e93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,22 @@
<?php
/**
* @file ordercomplete.pgkcp.php
* @date 2018-09-03
* @author Go Namhyeon <gnh1201@gmail.com>
* @brief KCP PG(Payment Gateway) contoller when complete
*/
// detect CSRF attack
if(check_token_abuse_by_requests("_token", "_POST")) {
set_error("Access denied. (Expired session or Website attacker)");
show_errors();
}
// process redirect url
$redirect_url = get_requested_value("redirect_url");
$order_idxx = get_requested_value("order_idxx");
redirect_uri(get_final_link($redirect_url, array(
"action" => "ordercomplete",
"order_idxx" => $order_idxx,
"good_mny" => $good_mny
), false));