Update available_payment_methods method in enterprises_helper and order model

This commit is contained in:
Nihal Mohammed
2022-02-21 23:14:41 +05:30
parent e0e800a53f
commit e2bdc69a90
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ module EnterprisesHelper
def available_payment_methods
return [] if current_distributor.blank?
payment_methods = current_distributor.payment_methods.available(:front_end).to_a
payment_methods = current_distributor.payment_methods.available(:both).to_a
filter = OpenFoodNetwork::AvailablePaymentMethodFilter.new
filter.filter!(payment_methods)

View File

@@ -375,7 +375,7 @@ module Spree
end
def available_payment_methods
@available_payment_methods ||= PaymentMethod.available(:front_end)
@available_payment_methods ||= PaymentMethod.available(:both)
end
# "Checkout" is the initial state and, for card payments, "pending" is the state after auth