Fix order path route in payments controller

This commit is contained in:
Luis Ramos
2021-01-23 14:17:02 +00:00
parent 3813b80615
commit f25e06ddb6

View File

@@ -153,7 +153,7 @@ module Spree
def authorize_stripe_sca_payment
return unless @payment.payment_method.class == Spree::Gateway::StripeSCA
@payment.authorize!(spree_order_path(@payment.order, only_path: false))
@payment.authorize!(main_app.spree_order_path(@payment.order, only_path: false))
raise Spree::Core::GatewayError, I18n.t('authorization_failure') unless @payment.pending?