You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The override of CheckoutController#before_payment disables the loading of @payment_sources.
When used with Authorize.Net CIM, this causes users with saved credit cards to never see the option to reuse them. Only known workaround is to copy the relevant code from Spree::Frontend into a project's own override.
Spree::CheckoutController.class_eval do
private
# Override the override from spree_product_assembly, to re-enable payment_sources
def before_payment
if try_spree_current_user && try_spree_current_user.respond_to?(:payment_sources)
@payment_sources = try_spree_current_user.payment_sources
end
end
end
The text was updated successfully, but these errors were encountered:
The override of CheckoutController#before_payment disables the loading of @payment_sources.
When used with Authorize.Net CIM, this causes users with saved credit cards to never see the option to reuse them. Only known workaround is to copy the relevant code from Spree::Frontend into a project's own override.
The text was updated successfully, but these errors were encountered: