module Spree
  module PaymentMethodsHelper
    def payment_method_name(payment)
      # hack to allow us to retrieve the name of a "deleted" payment method
      id = payment.payment_method_id
      Spree::PaymentMethod.find_with_destroyed(id).name
    end
  end
end

module Spree
  module PaymentMethodsHelper
    def payment_method(payment)
      # hack to allow us to retrieve the name of a "deleted" payment method
      id = payment.payment_method_id
      Spree::PaymentMethod.find_with_destroyed(id)
    end

    def payment_method_name(payment)
      payment_method(payment).name
    end
  end
end

Add method payment_method to get the payment method from a payment
Add method payment_method to get the payment method from a payment

 - Method `payment_method_name` now use `payment_method`
