class Adyen::CheckoutLink
Public Class Methods
new(client, version = DEFAULT_VERSION)
click to toggle source
# File lib/adyen/services/checkout.rb, line 90 def initialize(client, version = DEFAULT_VERSION) @service = "Checkout" @client = client @version = version end
Public Instance Methods
get(linkId, headers = {})
click to toggle source
# File lib/adyen/services/checkout.rb, line 96 def get(linkId, headers = {}) action = { method: 'get', url: "paymentLinks/" + linkId } @client.call_adyen_api(@service, action, {}, headers, @version, true) end
update(linkId, request, headers = {})
click to toggle source
# File lib/adyen/services/checkout.rb, line 101 def update(linkId, request, headers = {}) action = { method: 'patch', url: "paymentLinks/" + linkId } @client.call_adyen_api(@service, action, request, headers, @version, false) end