Module: Allinpay::Query
Instance Method Summary collapse
-
#query_batch_pay(sn, options = {}) ⇒ Object
交易结果查询 交易代码:200004.
Instance Method Details
#query_batch_pay(sn, options = {}) ⇒ Object
交易结果查询 交易代码:200004
22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/allinpay/query.rb', line 22 def query_batch_pay(sn, = {}) params = set_infomation('200004') tran_body = { MERCHANT_ID: merchant, QUERY_SN: sn } rean_body[:TYPE] = [:type] if [:type] rean_body[:STATUS] = [:status] if [:status] rean_body[:START_DAY] = [:start_day] if [:start_day] rean_body[:END_DAY] = [:end_day] if [:end_day] params[:QTRANSREQ] = tran_body res = conn.request(params) return result_wrap(:fail, res) if res["INFO"]["RET_CODE"] != "0000" return result_wrap(:success, res, params) end |