Class: Adyen::CheckoutMethod

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

Returns a new instance of CheckoutMethod.



117
118
119
120
121
# File 'lib/adyen/services/checkout.rb', line 117

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

Instance Method Details

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



123
124
125
126
# File 'lib/adyen/services/checkout.rb', line 123

def balance(request, headers = {})
  action = "paymentMethods/balance"
  @client.call_adyen_api(@service, action, request, headers, @version, true)
end