Sha256: 56ea28f26a097d5372950dd46e74bf880b852f9f3bfcb343e364df46ae9b0f4d
Contents?: true
Size: 1.35 KB
Versions: 6
Compression:
Stored size: 1.35 KB
Contents
# encoding: utf-8 require "rubygems" require 'active_support/core_ext/module/attribute_accessors' require 'active_support/deprecation' module MoIP autoload :DirectPayment, 'moip/direct_payment' autoload :Client, 'moip/client' # URI para acessar o serviço mattr_accessor :uri @@uri = 'https://www.moip.com.br' # Token de autenticação mattr_accessor :token # Chave de acesso ao serviço mattr_accessor :key def self.setup yield self end STATUS = {1 => "authorized", 2 => "started", 3 => "printed", 4 => "completed", 5 => "canceled", 6 => "analysing"} class << self def checkout(attributes = {}) ActiveSupport::Deprecation.warn("MoIP.checkout has been deprecated. Use MoIP::Client.checkout instead", caller) MoIP::Client.checkout(attributes) end def query(token) ActiveSupport::Deprecation.warn("MoIP.query has been deprecated. Use MoIP::Client.query instead", caller) MoIP::Client.query(token) end def moip_page(token) ActiveSupport::Deprecation.warn("MoIP.moip_page has been deprecated. use MoIP::Client.moip_page instead", caller) MoIP::Client.moip_page(token) end def notification(params) ActiveSupport::Deprecation.warn("MoIP.notification has been deprecated. use MoIP::Client.notification instead", caller) MoIP::Client.moip_page(token) end end end
Version data entries
6 entries across 6 versions & 3 rubygems
Version | Path |
---|---|
moip_catarse-1.0.6 | lib/moip.rb |
moip-ruby-0.1.2 | lib/moip.rb |
moip-ruby-0.1.1 | lib/moip.rb |
moip-ruby-0.1.0 | lib/moip.rb |
moip-1.0.4 | lib/moip.rb |
moip-1.0.2 | lib/moip.rb |