Method: WechatPay::Direct.query_refund
- Defined in:
- lib/wechat-pay/direct.rb
.query_refund(params) ⇒ Object
直连退款查询
Document: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_10.shtml
Example:
WechatPay::Direct.query_refund(out_refund_no: 'R10000')
274 275 276 277 278 279 280 281 282 283 284 285 286 287 |
# File 'lib/wechat-pay/direct.rb', line 274 def self.query_refund(params) out_refund_no = params.delete(:out_refund_no) url = "/v3/refund/domestic/refunds/#{out_refund_no}" method = 'GET' make_request( method: method, path: url, extra_headers: { 'Content-Type' => 'application/x-www-form-urlencoded' } ) end |