Browse Source

fixed bug - mentions to old gateway sub-module removed

1-2-stable-sysmocom
paulcc 12 years ago
parent
commit
bea73e2a0c
  1. 5
      app/controllers/admin/paypal_payments_controller.rb
  2. 1
      config/locales/en-GB.yml
  3. 1
      lib/spree/paypal_express.rb

5
app/controllers/admin/paypal_payments_controller.rb

@ -11,8 +11,9 @@ class Admin::PaypalPaymentsController < Admin::BaseController
def country_changed
end
include Spree::PaypalExpress::Gateway
# to allow capture (NB also included in order controller...)
include Spree::PaypalExpress
def capture
if !@order.paypal_payments.empty? && (payment = @order.paypal_payments.last).can_capture?

1
config/locales/en-GB.yml

@ -1,5 +1,6 @@
---
en-GB:
edit_paypal_info: Edit Paypal Express Payment
paypal_payment: Paypal Express Payment
paypal_txn_id: Transaction Code
paypal_capture_complete: Paypal Transaction has been captured.

1
lib/spree/paypal_express.rb

@ -3,7 +3,6 @@
module Spree::PaypalExpress
include ERB::Util
include Spree::PaymentGateway
include Spree::PaypalExpress::Gateway
def fixed_opts
{ :description => "Goods from a Spree-based site", # site details...

Loading…
Cancel
Save