Create api.getorder.pgkcp.php

This commit is contained in:
Namhyeon Go 2018-09-24 04:17:19 +09:00 committed by GitHub
parent d3a922e060
commit 22cae6055f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,18 @@
<?php
/**
* @file api.getorder.pgkcp.php
* @date 2018-09-24
* @author Go Namhyeon <gnh1201@gmail.com>
* @brief KCP PG(Payment Gateway) get completed order
*/
$ordr_idxx = get_requested_value("ordr_idxx");
if(empty($ordr_idxx)) {
set_error("ordr_idxx can not empty");
show_errors();
}
header("Content-type:application/json");
echo read_storage_file(get_hashed_text($ordr_idxx) . ".json", array(
"storage_type" => "payman"
));