Module: Reapal::Form::BusinessAuthForm
- Defined in:
- lib/reapal/form/business_auth_form.rb
Instance Method Summary collapse
-
#business_auth_form(flow_id, contract, services, auth_limit, amount, total_amount, return_url, notify_url, busway = '01', remark = '') ⇒ Hash
3.12 标的授权 (Form).
Instance Method Details
#business_auth_form(flow_id, contract, services, auth_limit, amount, total_amount, return_url, notify_url, busway = '01', remark = '') ⇒ Hash
3.12 标的授权 (Form)
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/reapal/form/business_auth_form.rb', line 29 def business_auth_form(flow_id, contract, services, auth_limit, amount, total_amount, return_url, notify_url, busway='01', remark='') service = 'reapal.trust.businessAuth' post_path = '/user/rest.htm' params = { orderNo: flow_id, contracts: contract, services: services, busway: busway, authLimit: auth_limit, amount: amount, totalAmount: total_amount, 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 |