Module: Reapal::Form::ComUploadingInfoForm

Defined in:
lib/reapal/form/com_uploading_info_form.rb

Instance Method Summary collapse

Instance Method Details

#com_uploading_info_form(flow_id, contract, return_url, notify_url, remark = '') ⇒ Hash

5.4 企业迁移用户激活

Parameters:

  • flow_id (String)

    订单号

  • contract (String)

    协议号

  • return_url (String)

    回调 URL

  • notify_url (String)

    通知 URL

  • remark (String) (defaults to: '')

    备注

Returns:

  • (Hash)

    结果集

    • :form_method

      • :method

      • :url

    • :form_data

      • :merchant_id

      • :encryptkey

      • :data



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/reapal/form/com_uploading_info_form.rb', line 22

def com_uploading_info_form(flow_id, contract, return_url, notify_url, remark='')
  service = 'reapal.trust.comUploadingInfo'
  post_path = '/agreement/agree.htm'

  params = {
    orderNo: flow_id,
    contracts: contract,
    returnUrl: return_url,
    notifyUrl: notify_url,
    remark: remark,
    applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
  }

  get_form_data(service, params, post_path)
end