From f7b2775b7e7e8e8274093eeac17cac63e821f4ba Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Wed, 2 May 2012 10:50:36 -0500 Subject: [PATCH] Add missing paypalexpressuk partial and clean up the related class some Fixes #49 --- app/models/spree/billing_integration/paypal_express_uk.rb | 6 ++++-- app/views/spree/checkout/payment/_paypalexpressuk.html.erb | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 app/views/spree/checkout/payment/_paypalexpressuk.html.erb diff --git a/app/models/spree/billing_integration/paypal_express_uk.rb b/app/models/spree/billing_integration/paypal_express_uk.rb index 1edfecd..7021b37 100644 --- a/app/models/spree/billing_integration/paypal_express_uk.rb +++ b/app/models/spree/billing_integration/paypal_express_uk.rb @@ -4,11 +4,13 @@ class Spree::BillingIntegration::PaypalExpressUk < Spree::BillingIntegration preference :signature, :string preference :review, :boolean, :default => false preference :no_shipping, :boolean, :default => false + preference :currency, :string, :default => 'GBP' + preference :allow_guest_checkout, :boolean, :default => false - attr_accessible :preferred_login, :preferred_password, :preferred_signature, :preferred_review, :preferred_no_shipping, :preferred_server, :preferred_test_mode + attr_accessible :preferred_login, :preferred_password, :preferred_signature, :preferred_review, :preferred_currency, :preferred_no_shipping, :preferred_server, :preferred_test_mode def provider_class - ActiveMerchant::Billing::PaypalExpressUkGateway + ActiveMerchant::Billing::PaypalExpressGateway end end diff --git a/app/views/spree/checkout/payment/_paypalexpressuk.html.erb b/app/views/spree/checkout/payment/_paypalexpressuk.html.erb new file mode 100644 index 0000000..f511a03 --- /dev/null +++ b/app/views/spree/checkout/payment/_paypalexpressuk.html.erb @@ -0,0 +1,3 @@ + + +