Class: Adyen::CheckoutMethod
- Defined in:
- lib/adyen/services/checkout.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
- #balance(request, headers = {}) ⇒ Object
-
#initialize(client, version = DEFAULT_VERSION) ⇒ CheckoutMethod
constructor
A new instance of CheckoutMethod.
Methods inherited from Service
Constructor Details
#initialize(client, version = DEFAULT_VERSION) ⇒ CheckoutMethod
Returns a new instance of CheckoutMethod.
113 114 115 116 117 |
# File 'lib/adyen/services/checkout.rb', line 113 def initialize(client, version = DEFAULT_VERSION) @service = "Checkout" @client = client @version = version end |
Instance Method Details
#balance(request, headers = {}) ⇒ Object
119 120 121 122 |
# File 'lib/adyen/services/checkout.rb', line 119 def balance(request, headers = {}) action = "paymentMethods/balance" @client.call_adyen_api(@service, action, request, headers, @version, true) end |