backend old version request

This commit is contained in:
2026-04-30 15:00:24 +04:00
parent d9b0c221f1
commit 678ab3773b
8 changed files with 367 additions and 17 deletions

View File

@@ -3,8 +3,14 @@
export const routes: Routes = [
{
path: '',
loadComponent: () =>
import('./pages/fastcheck-page/fastcheck-page').then((m) => m.FastcheckPage)
loadComponent: () => {
// Branch: ?id=<orderId> means legacy SBP merchant flow.
const hasLegacyId = typeof window !== 'undefined'
&& new URLSearchParams(window.location.search).has('id');
return hasLegacyId
? import('./pages/legacy-pay-page/legacy-pay-page').then((m) => m.LegacyPayPage)
: import('./pages/fastcheck-page/fastcheck-page').then((m) => m.FastcheckPage);
}
},
{
path: 'new',