feat(payment): unify payment callback endpoint for all gateways and types

This commit is contained in:
hamed
2026-08-09 16:02:48 +03:30
parent a6a965a2aa
commit 2471c90cbb
10 changed files with 205 additions and 71 deletions
@@ -33,8 +33,7 @@ class SecurityHeadersSubscriber implements EventSubscriberInterface
$isPaymentPage =
str_starts_with($path, '/api/v1/payment/order/')
|| str_starts_with($path, '/api/v1/payment/pay/')
|| str_starts_with($path, '/api/v1/payment/callback/')
|| str_starts_with($path, '/api/v1/subscription-payment/callback/');
|| $path === '/api/v1/payment/callback';
$response->headers->set(
'Content-Security-Policy',