Class: Adyen::CheckoutApplePay

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) ⇒ CheckoutApplePay

Returns a new instance of CheckoutApplePay.



143
144
145
146
147
# File 'lib/adyen/services/checkout.rb', line 143

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

Instance Method Details

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



149
150
151
152
# File 'lib/adyen/services/checkout.rb', line 149

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