Sha256: 78c6d8af395d3fef3b3e310c574867fb23096590c74865b04e9315d63a2d3f78
Contents?: true
Size: 573 Bytes
Versions: 9
Compression:
Stored size: 573 Bytes
Contents
require_relative './service' module Adyen class PosMobile < Service attr_accessor :service, :version DEFAULT_VERSION = 68 def initialize(client, version = DEFAULT_VERSION) super(client, version, 'PosMobile') end def create_communication_session(request, headers: {}) endpoint = '/sessions'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end end end
Version data entries
9 entries across 9 versions & 1 rubygems