Module: Reapal::Api::Money::DepositConfirmApi

Defined in:
lib/reapal/api/money/deposit_confirm_api.rb

Instance Method Summary collapse

Instance Method Details

#deposit_confirm_api(flow_id, contracts, check_code, terminal_info, member_ip, busway = '01', remark = '') ⇒ Hash

2.3 快捷充值确认(API)



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/reapal/api/money/deposit_confirm_api.rb', line 29

def deposit_confirm_api(flow_id, contracts, check_code, terminal_info, member_ip, busway = '01', remark = '')
  service = 'reapal.trust.depositConfirmAPI'
  post_path = '/reagw/service/depwit.htm'

  params = {
    orderNo: flow_id,
    contracts: contracts,
    checkCode: check_code,
    busway: busway,
    terminalInfo: terminal_info,
    memberIp: member_ip,
    applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
  }

  operate_post(:operate, service, params, post_path, Http::ErrorCode.deposit_confirm_api, ['0000'])
end