Sha256: 9f5fc2ed49cccd1731087490eb110e08d9316fbfa2771852ef984cf0e1968aae

Contents?: true

Size: 505 Bytes

Versions: 2

Compression:

Stored size: 505 Bytes

Contents

require 'gopay/client'
require 'gopay/payment'
require 'gopay/gateway'
require 'gopay/error'

module GoPay
  class << self
    attr_accessor :return_host, :notification_host, :gate, :client_id, :goid, :client_secret
  end

  def self.configure
    yield self
  end

  def self.request(method, path, body_parameters: {})
    client = GoPay::Client.new({gate: gate, client_id: client_id, goid: goid, client_secret: client_secret})
    client.request(method, path, body_parameters: body_parameters)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gopay-ruby-0.4.1 lib/gopay.rb
gopay-ruby-0.4.0.alpha lib/gopay.rb