module SimplePayment
Constants
- VERSION
Public Class Methods
clear_configuration()
click to toggle source
# File lib/simple_payment.rb, line 29 def clear_configuration @gateway = nil end
configure(options)
click to toggle source
# File lib/simple_payment.rb, line 24 def configure(options) @gateway = options[:gateway] @gateway = SimplePayment::Test::Gateway if @gateway == :test end
gateway()
click to toggle source
# File lib/simple_payment.rb, line 16 def gateway if @gateway.respond_to?(:new) @gateway.new else @gateway end end