Sha256: e70f89f5c6da47a9207984132d97a36f23de113400b19896a114c6ac57888135

Contents?: true

Size: 1.2 KB

Versions: 1

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 withdraw_apply_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

1 entries across 1 versions & 1 rubygems

Version Path
reapal-0.3.0 lib/reapal/form/certificate_form.rb