spree_paypal_express/app/models/spree/billing_integration/paypal_express_base.rb

19 lines
757 B
Ruby
Raw Normal View History

2012-05-31 06:54:05 +00:00
class Spree::BillingIntegration::PaypalExpressBase < Spree::BillingIntegration
preference :login, :string
preference :password, :password
preference :signature, :string
preference :review, :boolean, :default => false
preference :no_shipping, :boolean, :default => false
preference :currency, :string, :default => 'USD'
preference :allow_guest_checkout, :boolean, :default => false
attr_accessible :preferred_login, :preferred_password, :preferred_signature, :preferred_review, :preferred_no_shipping, :preferred_currency, :preferred_allow_guest_checkout, :preferred_server, :preferred_test_mode
def provider_class
ActiveMerchant::Billing::PaypalExpressGateway
end
def payment_profiles_supported?
!!preferred_review
end
end