Class: ECpayInvoice::NotifyClientECPay

Inherits:
Object
  • Object
show all
Defined in:
lib/ecpay_invoice/notify_client.rb

Instance Method Summary collapse

Constructor Details

#initializeNotifyClientECPay



23
24
25
# File 'lib/ecpay_invoice/notify_client.rb', line 23

def initialize
    @helper = APIHelper.new
end

Instance Method Details

#ecpay_invoice_notify(param) ⇒ Object



27
28
29
30
31
32
33
34
# File 'lib/ecpay_invoice/notify_client.rb', line 27

def ecpay_invoice_notify(param)
    notify_base_proc!(params: param)
    unix_time = get_curr_unix_time() - 120
    param['TimeStamp'] = unix_time.to_s
    p param['TimeStamp']
    res = notify_pos_proc!(params: param, apiname: 'InvoiceNotify')
    return res
end