企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
官方文档《统一收单交易退款接口》:https://docs.open.alipay.com/api_1/alipay.trade.refund ``` /** * 直接退款 - 测试 * url: http://tp5_alipay2017/index/alipay/refundTest */ public function refundTest() { alipayRefund('2017091810199555','2017091821001004920267861832','111.11','开发时用于测试退款方法',''); } ``` 退款返回结果 ``` C:\project\tp3_alipay2017\Application\Home\Common\function.php:94: object(stdClass)[16] public 'code' => string '10000' (length=5) public 'msg' => string 'Success' (length=7) public 'buyer_logon_id' => string '403***@qq.com' (length=13) public 'buyer_user_id' => string '2088002654613928' (length=16) public 'fund_change' => string 'Y' (length=1) public 'gmt_refund_pay' => string '2017-09-18 00:04:46' (length=19) public 'out_trade_no' => string '201791713650556' (length=15) public 'refund_fee' => string '0.01' (length=4) public 'send_back_fee' => string '0.00' (length=4) public 'trade_no' => string '2017091721001004920264050508' (length=28) ```