Php 将支付网关响应发送到requestb.in
我已经开发了一个自定义支付网关插件,目前我正在查找,但我仍然需要捕获从网关到requestb URL的响应 我已经通过wp_邮件发送了回复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
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上