Module: Reapal::Form::ComUpdateInfoForm

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

Instance Method Summary collapse

Instance Method Details

#com_update_info_form(flow_id, contract, return_url, notify_url, busway = '01', remark = '') ⇒ Hash

1.3 企业信息修改

Parameters:

  • flow_id (String)

    订单号

  • contract (String)

    协议号

  • return_url (String)

    回调 URL

  • notify_url (String)

    通知 URL

  • busway (String) (defaults to: '01')

    设备通道,默认手机端 00:PC端;01:移动端H5页面

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

    备注

Returns:

  • (Hash)

    结果集

    • :form_method

      • :method

      • :url

    • :form_data

      • :merchant_id

      • :encryptkey

      • :data



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

def com_update_info_form(flow_id, contract, return_url, notify_url,
                         busway='01', remark='')
  service = 'reapal.trust.comUpadteInfo'
  post_path = '/agreement/agree.htm'

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