Sha256: 75d92bc61e6fb5567f6e3dbbc352fd096a9c801e1eeafbccbd25f5b566b414e3
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 Bytes
Contents
require 'bodega/engine' require 'configurator' module Bodega autoload :PaymentMethod, 'bodega/payment_method' extend Configurator option :customer_method, :current_user option :product_name, 'product' # Auto-detect payment method. If a user has the Paypal gem installed, # it'll use that. If a user has the Plinq gem installed, it'll use that. # Otherwise, it'll be all, "HEY I NEED A PAYMENT METHOD" when checkout # starts. option :payment_method, lambda { defined?(::Plinq) ? :plinq : defined?(::Paypal) ? :paypal : raise("No payment method detected. Please set one using `Bodega.config.payment_method=`") } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bodega-0.2.0 | lib/bodega.rb |