Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/272.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 将支付网关响应发送到requestb.in_Php_Wordpress_Woocommerce - Fatal编程技术网

Php 将支付网关响应发送到requestb.in

Php 将支付网关响应发送到requestb.in,php,wordpress,woocommerce,Php,Wordpress,Woocommerce,我已经开发了一个自定义支付网关插件,目前我正在查找,但我仍然需要捕获从网关到requestb URL的响应 我已经通过wp_邮件发送了回复 if (isset($_GET['wc-api']) && $_GET['wc-api'] == 'woocommerce_mpay') { wp_mail('email@gmail.com','API Response', json_encode($_GET['result'])); /** need to trim fro

我已经开发了一个自定义支付网关插件,目前我正在查找,但我仍然需要捕获从网关到requestb URL的响应

我已经通过wp_邮件发送了回复

if (isset($_GET['wc-api']) && $_GET['wc-api'] == 'woocommerce_mpay') {
    wp_mail('email@gmail.com','API Response', json_encode($_GET['result']));
    /** need to trim from result **/
    $Url_result = $_GET['result'];

    $order = new WC_Order( (int) substr($Url_result,7,20) );

    $tranID = (int)substr($Url_result,1,6);



    if (substr($Url_result,0,1) == '0'){

        $r_status = 0;

    }else{

    $r_status = 33;

    }
但我仍然希望它位于requestbin url上