Sha256: ab81203ad5255ce27bbb098f2321fd2cc1382c472c5546c75edacaed97822f93
Contents?: true
Size: 1.2 KB
Versions: 12
Compression:
Stored size: 1.2 KB
Contents
# coding: utf-8 module Reapal module Form module CertificateForm # 2.5 卡密鉴权 # # @param flow_id [String] 订单号 # @param bind_id [String] 绑卡 ID,调用充值签约接口时,获取的bindId # @param contract [String] 借款人协议号 # @param return_url [String] 回调 url # @param notify_url [String] 通知 url # @param terminal_type [String] 终端类型,默认手机端。PC端:web 手机端:mobile # # @return [ Hash ] 结果集 # * :form_method # * :method # * :url # * :form_data # * :merchant_id # * :encryptkey # * :data # def certificate_form(flow_id, bind_id, contract, return_url, notify_url, terminal_type='mobile') service = 'reapal.trust.certificate' post_path = '/reagw/service/depwit.htm' params = { orderNo: flow_id, contracts: contract, terminalType: terminal_type, returnUrl: return_url, notifyUrl: notify_url, applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'), } get_form_data(service, params, post_path) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems