发布于 4年前

微信支付退款返回的几种数据结构

^ array:2 [▼
  "return_code" => "FAIL"
  "return_msg" => "invalid transaction_id"
]
^ array:9 [▼
  "return_code" => "SUCCESS"
  "return_msg" => "OK"
  "appid" => "wx3a**********5e19"
  "mch_id" => "15*******2"
  "nonce_str" => "zXUbinHvzTVqlkCt"
  "sign" => "25905D3A2F84BC6CB1EB06B3925AD602"
  "result_code" => "FAIL"
  "err_code" => "REFUND_FEE_MISMATCH"
  "err_code_des" => "订单金额或退款金额与之前请求不一致,请核实后再试"
]
^ array:2 [▼
  "return_code" => "FAIL"
  "return_msg" => "0参数格式错误"
]
^ array:18 [▼
  "return_code" => "SUCCESS"
  "return_msg" => "OK"
  "appid" => "wx3a**********5e19"
  "mch_id" => "15*******2"
  "nonce_str" => "X1vOwC0adhjOr3TP"
  "sign" => "0A3497351045E42AB1C7B2D64A95362F"
  "result_code" => "SUCCESS"
  "transaction_id" => "4200000*********************5029"
  "out_trade_no" => "20201234520002077"
  "out_refund_no" => "94823820103113000030"
  "refund_id" => "5030***************************8814"
  "refund_channel" => null
  "refund_fee" => "1"
  "coupon_refund_fee" => "0"
  "total_fee" => "1"
  "cash_fee" => "1"
  "coupon_refund_count" => "0"
  "cash_refund_fee" => "1"
]
©2020 edoou.com   京ICP备16001874号-3