From b7f9fb8d7223fc345693a1f1445956dc22b8ff9a Mon Sep 17 00:00:00 2001 From: Andy Brett Date: Tue, 9 Mar 2021 10:06:31 -0800 Subject: [PATCH] send full redirect URL to stripe --- app/controllers/spree/admin/payments_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/spree/admin/payments_controller.rb b/app/controllers/spree/admin/payments_controller.rb index f818022dfd..cddf685dd7 100644 --- a/app/controllers/spree/admin/payments_controller.rb +++ b/app/controllers/spree/admin/payments_controller.rb @@ -3,6 +3,8 @@ module Spree module Admin class PaymentsController < Spree::Admin::BaseController + include FullUrlHelper + before_action :load_order, except: [:show] before_action :load_payment, only: [:fire, :show] before_action :load_data @@ -153,7 +155,7 @@ module Spree def authorize_stripe_sca_payment return unless @payment.payment_method.class == Spree::Gateway::StripeSCA - @payment.authorize!(main_app.order_path(@payment.order, only_path: false)) + @payment.authorize!(full_order_path(@payment.order)) raise Spree::Core::GatewayError, I18n.t('authorization_failure') unless @payment.pending?