Class: Upay::Payment

Inherits:
Object
  • Object
show all
Defined in:
lib/upay/payment.rb

Instance Method Summary collapse

Instance Method Details

#get_payment_methodsObject



7
8
9
# File 'lib/upay/payment.rb', line 7

def get_payment_methods
  Requestor.new.request(PAYMENTS_API_URL, "GET_PAYMENT_METHODS")
end

#ping_paymentsObject



3
4
5
# File 'lib/upay/payment.rb', line 3

def ping_payments
  Requestor.new.request(PAYMENTS_API_URL, "PING")
end

#submit_transaction(payload) ⇒ Object



11
12
13
# File 'lib/upay/payment.rb', line 11

def submit_transaction(payload)
  Requestor.new.request(PAYMENTS_API_URL, "SUBMIT_TRANSACTION", payload)
end