$input->SetOut_trade_no($out_trade_no); printf_info(WxPayApi::refundQuery($input)); exit; } if (isset($_REQUEST["out_refund_no"]) && $_REQUEST["out_refund_no"] != "") { $out_refund_no = $_REQUEST["out_refund_no"]; $input = new WxPayRefundQuery(); $input->SetOut_refund_no($out_refund_no); printf_info(WxPayApi::refundQuery($input)); exit; } if (isset($_REQUEST["refund_id"]) && $_REQUEST["refund_id"] != "") { $refund_id = $_REQUEST["refund_id"]; $input = new WxPayRefundQuery(); $input->SetRefund_id($refund_id); printf_info(WxPayApi::refundQuery($input)); exit; } ?> <body> <form action="#" method="post"> <div style="margin-left:2%;color:#f00">微信订单号、商户订单号、微信订单号、微信退款单号选填至少一个,微信退款单号优先:</div><br/> <div style="margin-left:2%;">微信订单号:</div><br/> <input type="text" style="width:96%;height:35px;margin-left:2%;" name="transaction_id" /><br /><br /> <div style="margin-left:2%;">商户订单号:</div><br/> <input type="text" style="width:96%;height:35px;margin-left:2%;" name="out_trade_no" /><br /><br /> <div style="margin-left:2%;">商户退款单号:</div><br/> <input type="text" style="width:96%;height:35px;margin-left:2%;" name="out_refund_no" /><br /><br /> <div style="margin-left:2%;">微信退款单号:</div><br/> <input type="text" style="width:96%;height:35px;margin-left:2%;" name="refund_id" /><br /><br /> <div align="center">