From 0425625707cfa867caa3936247d2a2cfd9a803d1 Mon Sep 17 00:00:00 2001 From: Lorenzo Ruozzi Date: Mon, 5 Aug 2024 11:27:30 +0200 Subject: [PATCH] Another fix for routing --- config/shop_ajax_routing.php | 2 +- public/poll_payment.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config/shop_ajax_routing.php b/config/shop_ajax_routing.php index f9f38f6..8f13053 100644 --- a/config/shop_ajax_routing.php +++ b/config/shop_ajax_routing.php @@ -5,7 +5,7 @@ use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; return static function (RoutingConfigurator $routes): void { - $routes->add('webgriffe_sylius_pagolight_plugin_payment_status', '/payment/{paymentId}/status') + $routes->add('webgriffe_sylius_pagolight_plugin_payment_status', '/payment/{paymentId}/pagolight-status') ->controller(['webgriffe_sylius_pagolight.controller.payment', 'statusAction']) ->methods(['GET']) ->requirements(['paymentId' => '\d+']) diff --git a/public/poll_payment.js b/public/poll_payment.js index bcce0bf..26e8252 100644 --- a/public/poll_payment.js +++ b/public/poll_payment.js @@ -17,4 +17,3 @@ checkForCapturedPayment() })(); -