Sha256: 5e968b2ca8d193a5915e5cb9e32d803263f8072b59a5c8bbfe12eccebb9fa8a2
Contents?: true
Size: 902 Bytes
Versions: 1
Compression:
Stored size: 902 Bytes
Contents
### # 交易查询接 # 1.支付交易结果查询 # ### module Allinpay module Query extend ActiveSupport::Concern included do # 支付交易结果查询 # # Paramters: # # sn: 交易序号 # options: def query_batch_pay(sn, options = {}) params = set_infomation('200004') tran_body = { MERCHANT_ID: merchant, QUERY_SN: sn } rean_body[:TYPE] = options[:type] if options[:type] rean_body[:STATUS] = options[:status] if options[:status] rean_body[:START_DAY] = options[:start_day] if options[:start_day] rean_body[:END_DAY] = options[:end_day] if options[: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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
allinpay-0.1.0 | lib/allinpay/query.rb |