Class: CentrumFaktur::API::Payment
- Inherits:
-
Base
- Object
- Base
- CentrumFaktur::API::Payment
show all
- Defined in:
- lib/centrum_faktur/api/payment.rb
Instance Attribute Summary
Attributes inherited from Base
#client
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#create(payment_uri, params) ⇒ Object
10
11
12
13
|
# File 'lib/centrum_faktur/api/payment.rb', line 10
def create(payment_uri, params)
request = connection.post(payment_uri, params)
request.handle_response
end
|
#list(comment_uri = "/api/1.0/payments/", options = {}) ⇒ Object
5
6
7
8
|
# File 'lib/centrum_faktur/api/payment.rb', line 5
def list( = "/api/1.0/payments/", options = {})
request = connection.get(, options)
request.handle_response
end
|