Sha256: 611ec0051c28d7683a4c6ab8e0fd2757f3753fffa92cadd15329ac2738c4ed27

Contents?: true

Size: 1.07 KB

Versions: 13

Compression:

Stored size: 1.07 KB

Contents

# coding: utf-8

module Reapal
  module Form
    module FindTradePassowrdForm

      # 1.9 设置/修改交易密码
      #
      # @param contract [String] 用户协议
      # @param return_url [String] 回调 url
      # @param notify_url [String] 通知 url
      # @param busway [String] 设备通道,默认手机端。00:PC端;01:手机端;02:Pad端;03:其它
      #
      # @return [ Hash ] 结果集
      #   * :form_method
      #     * :method
      #     * :url
      #   * :form_data
      #     * :merchant_id
      #     * :encryptkey
      #     * :data
      #
      def find_trade_password_form(contract, return_url, notify_url, busway='01')
        service = 'reapal.trust.findTradePassword'
        post_path = '/reagw/findTradePassword/findTradePassword.htm'

        params = {
          contracts: contract,
          busway: busway,
          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

13 entries across 13 versions & 1 rubygems

Version Path
reapal-0.9.13 lib/reapal/form/find_trade_password_form.rb
reapal-0.9.12 lib/reapal/form/find_trade_password_form.rb
reapal-0.9.11 lib/reapal/form/find_trade_password_form.rb
reapal-0.9.10 lib/reapal/form/find_trade_password_form.rb
reapal-0.9.9 lib/reapal/form/find_trade_password_form.rb
reapal-0.9.7 lib/reapal/form/find_trade_password_form.rb
reapal-0.9.6 lib/reapal/form/find_trade_password_form.rb
reapal-0.9.5 lib/reapal/form/find_trade_password_form.rb
reapal-0.9.3 lib/reapal/form/find_trade_password_form.rb
reapal-0.9.2 lib/reapal/form/find_trade_password_form.rb
reapal-0.9.1 lib/reapal/form/find_trade_password_form.rb
reapal-0.9.0 lib/reapal/form/find_trade_password_form.rb
reapal-0.3.0 lib/reapal/form/find_trade_password_form.rb