Sha256: 1331d0aff4654e434b19ee25bf8a4ee8d114a95d24e9ce12431acbf3286bb7d7

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

module Reapal
  module Form
    module ShortcutRechargeForm

        # 2.2 快捷充值
        #
        # @param flow_id [ String ] 订单号
        # @param contracts [ String ] 协议号
        # @param money [ Number ] 交易金额
        # @param return_url [String] 回调 url
        # @param notify_url [String] 通知 url
        # @param remark [ String ] 备注
        #
        # @return [ Hash ] 结果集
        #   * :form_method
        #     * :method
        #     * :url
        #   * :form_data
        #     * :merchant_id
        #     * :encryptkey
        #     * :data
        #
        def shortcut_recharge_form(flow_id, contracts, money, return_url, notify_url, remark='')
          service = 'reapal.trust.depositApply'
          post_path = '/reagw/service/deposit.htm'

          params = {
            orderNo: flow_id,
            contracts: contracts,
            amount: money,
            returnUrl: return_url,
            notifyUrl: notify_url,
            busway: '01',
            remark: remark,
            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.10.0 lib/reapal/form/shortcut_recharge_form.rb