Sha256: 2327d7e0aa3eb8ee8eea61ad658d080f9aa8c0d1d1d3b17ce6e2572e7d608826
Contents?: true
Size: 1002 Bytes
Versions: 2
Compression:
Stored size: 1002 Bytes
Contents
class PaypalConfiguration < Configuration # the url parameters should not need to be changed (unless paypal changes the api or something other major change) preference :sandbox_url, :string, :default => "https://www.sandbox.paypal.com/cgi-bin/webscr" preference :paypal_url, :string, :default => "https://www.paypal.com/cgi-bin/webscr" # these are just default preferences of course, you'll need to change them to something meaningful preference :account, :string, :default => "foo@example.com" preference :success_url, :string, :default => "http://localhost:3000/paypal/confirm" # this stuff is really handy preference :currency_code, :string, :default => "EUR" preference :page_style, :string, :default => 'PayPal' # encryption / security preference :encrypted, :boolean, :default => false preference :cert_id, :string, :default => "12345678" preference :ipn_secret, :string, :default => "secret" validates_presence_of :name validates_uniqueness_of :name end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_paypal_website_standard-0.8.4 | lib/paypal_configuration.rb |
spree_paypal_website_standard-0.8.3 | lib/paypal_configuration.rb |