Class: Adyen::CheckoutDetail
- Defined in:
- lib/adyen/services/checkout.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
- #details(request, headers = {}) ⇒ Object
-
#initialize(client, version = DEFAULT_VERSION) ⇒ CheckoutDetail
constructor
A new instance of CheckoutDetail.
- #result(request, headers = {}) ⇒ Object
Methods inherited from Service
Constructor Details
#initialize(client, version = DEFAULT_VERSION) ⇒ CheckoutDetail
Returns a new instance of CheckoutDetail.
40 41 42 43 44 |
# File 'lib/adyen/services/checkout.rb', line 40 def initialize(client, version = DEFAULT_VERSION) @service = "Checkout" @client = client @version = version end |
Instance Method Details
#details(request, headers = {}) ⇒ Object
46 47 48 49 |
# File 'lib/adyen/services/checkout.rb', line 46 def details(request, headers = {}) action = "payments/details" @client.call_adyen_api(@service, action, request, headers, @version) end |
#result(request, headers = {}) ⇒ Object
51 52 53 54 |
# File 'lib/adyen/services/checkout.rb', line 51 def result(request, headers = {}) action = "payments/result" @client.call_adyen_api(@service, action, request, headers, @version) end |