Module: Reapal::Api::Money::DepositApplyApi

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

Instance Method Summary collapse

Instance Method Details

#deposit_apply_api(flow_id, contracts, bank_card, true_name, identity_id, phone, amount, charge, terminal_info, member_ip, notify_url, cert_type = '01', currency = 'cny', bus_way = '01', remark = '') ⇒ Hash

2.2 快捷充值签约(API)



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/reapal/api/money/deposit_apply_api.rb', line 41

def deposit_apply_api(flow_id, contracts, bank_card, true_name, identity_id,
                      phone, amount, charge, terminal_info, member_ip,
                      notify_url, cert_type = '01', currency = 'cny', bus_way = '01', remark = '')

  service = 'reapal.trust.depositApplyAPI'
  post_path = '/reagw/service/depwit.htm'

  params = {
    orderNo: flow_id,
    contracts: contracts,
    bankCard: bank_card,
    userName: true_name,
    certType: cert_type,
    userIdentity: identity_id,
    userMobile: phone,
    currency: currency,
    amount: amount,
    charge: charge,
    busway: bus_way,
    terminalInfo: terminal_info,
    memberIp: member_ip,
    notifyUrl: notify_url,
    remark: remark,
    applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
  }

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