# frozen_string_literal: true require "ac" require_relative "mp_api/client" require_relative "mp_api/payment" require_relative "mp_api/payment_error" require_relative "mp_api/token" require_relative "mp_api/payment_method" require_relative "mp_api/version" module MpApi class Error < StandardError; end class RequestError < StandardError def initialize(message="Request error") super(message) end end class Configuration attr_accessor :access_token, :public_key def initialize end end class << self attr_accessor :configuration end def self.configure self.configuration ||= Configuration.new yield configuration end end