Remove unused Spree::Order#available_payment_methods method

This was introduced in 47d2f698ef but we are using OrderAvailablePaymentMethods now.
This commit is contained in:
Cillian O'Ruanaidh
2022-10-07 17:45:29 +01:00
parent 2c14aecf4f
commit f5bd23b4d8

View File

@@ -376,10 +376,6 @@ module Spree
payment_state == 'paid' || payment_state == 'credit_owed'
end
def available_payment_methods
@available_payment_methods ||= PaymentMethod.available(:both)
end
# "Checkout" is the initial state and, for card payments, "pending" is the state after auth
# These are both valid states to process the payment
def pending_payments