Class: Adyen::CheckoutDetail

Inherits:
Service
  • Object
show all
Defined in:
lib/adyen/services/checkout.rb

Instance Attribute Summary

Attributes inherited from Service

#service, #version

Instance Method Summary collapse

Methods inherited from Service

action_for_method_name

Constructor Details

#initialize(client, version = DEFAULT_VERSION) ⇒ CheckoutDetail

Returns a new instance of CheckoutDetail.



81
82
83
84
85
# File 'lib/adyen/services/checkout.rb', line 81

def initialize(client, version = DEFAULT_VERSION)
  @service = "Checkout"
  @client = client
  @version = version
end

Instance Method Details

#details(request, headers = {}) ⇒ Object



87
88
89
90
# File 'lib/adyen/services/checkout.rb', line 87

def details(request, headers = {})
  action = "payments/details"
  @client.call_adyen_api(@service, action, request, headers, @version)
end

#result(request, headers = {}) ⇒ Object



92
93
94
95
# File 'lib/adyen/services/checkout.rb', line 92

def result(request, headers = {})
  action = "payments/result"
  @client.call_adyen_api(@service, action, request, headers, @version)
end