Module: Reapal::Form::MemberPaymentForm
- Defined in:
- lib/reapal/form/member_payment_form.rb
Instance Method Summary collapse
Instance Method Details
#member_payment_form(flow_id, payment_subject, amount, payer_contract, return_url, notify_url, busway = '01', remark = '') ⇒ Hash
2.6 会员缴费
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/reapal/form/member_payment_form.rb', line 27 def member_payment_form(flow_id, payment_subject, amount, payer_contract, return_url, notify_url, busway='01', remark='') service = 'reapal.trust.memberPayment' post_path = '/tender/rest.htm' params = { orderNo: flow_id, paymentSubject: payment_subject, amount: amount, payerContract: payer_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 |