Module: BillsPayment::Actions::Post::ClassMethods

Defined in:
lib/bills-payment/actions/post.rb

Instance Method Summary collapse

Instance Method Details

#do_payment(payment_data) ⇒ Object

params - id, customerRef, billerId, narration, accountNumber, paymentDate



17
18
19
20
# File 'lib/bills-payment/actions/post.rb', line 17

def do_payment(payment_data)
  api_url = "#{self.api_url}/dopayment"
  response = BillsPayment.request(api_url, :post, payment_data)
end

#load_billers(id) ⇒ Object



11
12
13
14
# File 'lib/bills-payment/actions/post.rb', line 11

def load_billers(id)
  api_url = "#{api_url}/getbillers/#{id}"
  response = BillsPayment.request(api_url, :post)
end

#load_categoryObject



6
7
8
9
# File 'lib/bills-payment/actions/post.rb', line 6

def load_category
  api_url = "#{api_url}/categories"
  response = BillsPayment.request(api_url, :post)
end