feat(MED-100): update montonio redirect

This commit is contained in:
2025-07-24 08:02:13 +03:00
parent 8633ac4bce
commit e59ad6af00
11 changed files with 261 additions and 166 deletions

View File

@@ -58,12 +58,6 @@ export const POST = enhanceRouteHandler(
algorithms: ['HS256'],
}) as MontonioOrderToken;
const activeCartId = request.cookies.get('_medusa_cart_id')?.value;
const [, cartId] = decoded.merchantReferenceDisplay.split(':');
if (cartId !== activeCartId) {
throw new Error('Invalid cart id');
}
logger.info(
{
name: namespace,