Sha256: ac74379ccb1e5942837a4dc91d3f593a7ae2ac37e6d2aeb6dfb0fd10d5cf1e6f
Contents?: true
Size: 1.17 KB
Versions: 8
Compression:
Stored size: 1.17 KB
Contents
# File: lib/forge/ecommerce.rb # Adds configuration options for ecommerce # eg. # # Forge.configure do |config| # config.ecommerce.payments = :hosted or :integrated # config.ecommerce.shippers = { # :one => One, # :two => Two # } # # config.ecommerce.active_merchant = { # :gateway => "gateway", # :login => "login", # :password => "password" # } # # config.ecommerce.email_receipt = true # # config.ecommerce.currency = "CAD" # # config.ecommerce.paypal_production = { # :account => {} # } # # config.ecommerce.paypal_sandbox = { # :account => {} # } # end module Forge class Configuration def ecommerce @ecommerce ||= EcommerceConfiguration.new end class EcommerceConfiguration attr_accessor :payments, :flat_rate_shipping, :shippers :email_receipt, :active_merchant, :paypal_production :paypal_sandbox, :currency def initialize @payments = :hosted @shippers = {} @active_merchant = {} @paypal_production = {} @paypal_sandbox = {} end def payments @payments.to_sym end end end end
Version data entries
8 entries across 8 versions & 1 rubygems