CODE (htmlphp):
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?php
- require_once("../pay/utils.php");
- $self = $_SERVER['PHP_SELF'];
- $path1 = '../pay/config.txt';
- $order_id = 1;
- $currency_id = "840";
- $amount = 10;
- $content = process_request($order_id, $currency_id, $amount, $path1);
- ?>
- <?php
- require_once("../pay/utils.php");
- $self = $_SERVER['PHP_SELF'];
- $path1 = '../pay/config.txt';
- $result = 0;
- if(isset($_POST["response"])){$response = $_POST["response"];};
- $result = process_response(stripslashes($response),$path1);
- if (is_array($result)){
- if (in_array("ERROR",$result)){
- if ($result["ERROR_TYPE"]=="ERROR"){
- echo "System error:".$result["ERROR"];
- } elseif ($result["ERROR_TYPE"]=="system"){
- echo "Bank system error > Code: '".$result["ERROR_CODE"]."' Text: '".$result["ERROR_CHARDATA"]."' Time: '".$result["ERROR_TIME"]."' Order_ID: '".$result["RESPONSE_ORDER_ID"]."'";
- }elseif ($result["ERROR_TYPE"]=="auth"){
- echo "Bank system user autentication error > Code: '".$result["ERROR_CODE"]."' Text: '".$result["ERROR_CHARDATA"]."' Time: '".$result["ERROR_TIME"]."' Order_ID: '".$result["RESPONSE_ORDER_ID"]."'";
- };
- };
- if (in_array("DOCUMENT",$result)){
- echo "Result DATA: <BR>";
- foreach ($result as $key => $value) {echo "Postlink Result: ".$key." = ".$value."<br>";};
- };
- } else { echo "System error".$result; };
- ?>