Add missing paypalexpressuk partial and clean up the related class some

Fixes #49
This commit is contained in:
Ryan Bigg 2012-05-02 10:50:36 -05:00
parent 7e018fb2d2
commit f7b2775b7e
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -0,0 +1,3 @@
<a href="<%= paypal_payment_order_checkout_url @order, :payment_method_id => payment_method %>" style="text-align: center;">
<img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" align="left" style="margin-right:7px;"/>
</a>