<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\MacroNamespace;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* base.html.twig */
class __TwigTemplate_9f813bc706ab02a3f57973568d357406 extends Template
{
private Source $source;
/**
* @var array<string, MacroNamespace>
*/
private array $macros = [];
private \Twig\Runtime\EscaperRuntime $escaper;
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
$this->parent = false;
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
// line 1
yield "<!doctype html>
<html lang=\"fr\">
<head>
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
<meta name=\"description\" content=\"Site de vente en ligne en Symfony 5\">
<meta name=\"author\" content=\"Cassano Gabriele\">
<title>GC Belgian Shop</title>
<link href=\"";
// line 11
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/bootstrap.min.css"), "html", null, true);
yield "\" rel=\"stylesheet\">
<link href=\"";
// line 12
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/boutiquebelge.css"), "html", null, true);
yield "\" rel=\"stylesheet\">
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css\">
<link href=\"";
// line 14
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/carousel.css"), "html", null, true);
yield "\" rel=\"stylesheet\">
\t\t<style>
.sf-toolbar {
display: none !important;
}
\t\t</style>
</head>
<body>
<header>
<nav class=\"navbar navbar-expand-md navbar-dark fixed-top bg-info\">
<a class=\"navbar-brand\" href=\"";
// line 25
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
yield "\">GC Belgian Shop</a>
<button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarCollapse\" aria-controls=\"navbarCollapse\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
<span class=\"navbar-toggler-icon\"></span>
</button>
<div class=\"collapse navbar-collapse\" id=\"navbarCollapse\">
<ul class=\"navbar-nav mr-auto\">
<li class=\"nav-item active\">
<a class=\"nav-link\" href=\"";
// line 34
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("about");
yield "\">Qui sommes-nous ?</a>
</li>
<li class=\"nav-item active\">
<a class=\"nav-link\" href=\"";
// line 37
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("products");
yield "\">Nos produits</a>
</li>
</ul>
<div class=\"navbar-item-custom\">
";
// line 42
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 42, $this->source); })()), "user", [], "any", false, false, false, 42)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 43
yield " <a href=\"";
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account");
yield "\">Mon compte <small>(";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 43, $this->source); })()), "user", [], "any", false, false, false, 43), "firstname", [], "any", false, false, false, 43), "html", null, true);
yield ")</small></a> | <a href=\"";
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
yield "\"> Déconnecter</a>
";
} else {
// line 45
yield " <a href=\"";
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
yield "\">Connexion </a> | <a href=\"";
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register");
yield "\"> Inscription</a>
";
}
// line 47
yield " </div>
<a href=\"";
// line 49
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart");
yield "\"><i class=\"fas fa-shopping-cart text-light ml-2\"></i></a>
<span class=\"text-white ml-2\">(";
// line 50
yield (string) $this->escaper->escape($this->extensions['App\Twig\CartExtension']->getCartItemCount(), "html", null, true);
yield ")</span>
";
// line 52
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 52, $this->source); })()), "user", [], "any", false, false, false, 52)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 53
yield " <a href=\"";
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("wishlists");
yield "\"><i class=\"fas fa-heart text-light ml-2\"></i></a>
<span class=\"text-white ml-2\" id=\"wishlist-count\">(";
// line 54
yield (string) $this->escaper->escape($this->extensions['App\Twig\CartExtension']->getWishlistItemCount(), "html", null, true);
yield ")</span>
";
}
// line 56
yield " </div>
</div>
</nav>
</header>
<main role=\"main\">
";
// line 62
if ( $this->unwrap()->hasBlock("carousel", $context, $blocks)) {
// line 63
yield " <div id=\"myCarousel\" class=\"carousel slide custom-carousel\" data-ride=\"carousel\">
<ol class=\"carousel-indicators\">
<li data-target=\"#myCarousel\" data-slide-to=\"0\" class=\"active\"></li>
<li data-target=\"#myCarousel\" data-slide-to=\"1\"></li>
<li data-target=\"#myCarousel\" data-slide-to=\"2\"></li>
</ol>
<div class=\"carousel-inner\">
<div class=\"carousel-item active\">
<img src=\"";
// line 72
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/slider/slider1.jpg"), "html", null, true);
yield "\" alt=\"Image 1 du slider\" />
<div class=\"container\">
<div class=\"carousel-caption text-left\">
<h1>Achetez des produits belges</h1>
<p>Un large choix de bières belges.</p>
<p><a class=\"btn btn-lg btn-primary\" href=\"";
// line 78
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register");
yield "\" role=\"button\">S\x27inscrire aujourd\x27hui</a></p>
</div>
</div>
</div>
<div class=\"carousel-item\">
<img src=\"";
// line 84
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/slider/slider2.jpg"), "html", null, true);
yield "\" alt=\"Image 2 du slider\" />
<div class=\"container\">
<div class=\"carousel-caption\">
<h1>Dégustez le café belge</h1>
<p>Découvrez les cafés fabriqués dans notre pays.</p>
<p><a class=\"btn btn-lg btn-primary\" href=\"#\" role=\"button\">Lire plus</a></p>
</div>
</div>
</div>
<div class=\"carousel-item\">
<img src=\"";
// line 96
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/slider/slider3.jpg"), "html", null, true);
yield "\" alt=\"Image 3 du slider\" />
<div class=\"container\">
<div class=\"carousel-caption text-right\">
<h1>Le chocolat belge</h1>
<p>Comme vous le savez, les belges sont spécialistes de la bière, le chocolat et les frites.</p>
<p><a class=\"btn btn-lg btn-primary\" href=\"#\" role=\"button\">Voir la gallerie</a></p>
</div>
</div>
</div>
</div>
<a class=\"carousel-control-prev\" href=\"#myCarousel\" role=\"button\" data-slide=\"prev\">
<span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>
<span class=\"sr-only\">Previous</span>
</a>
<a class=\"carousel-control-next\" href=\"#myCarousel\" role=\"button\" data-slide=\"next\">
<span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>
<span class=\"sr-only\">Next</span>
</a>
</div>
";
}
// line 117
yield "
<div class=\"container marketing ";
// line 119
if ( ! $this->unwrap()->hasBlock("carousel", $context, $blocks)) {
yield " mt-5 ";
}
yield "\">
";
// line 120
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
// line 122
yield " </div>
<footer class=\"footer-custom bg-info\">
<p class=\"h5 mb-5 mt-3\">
© 2023 - <a href=\"https://gabriel-cassano.be\" style=\"color:white;\">Gabriele Cassano</a> - Tous droits réservés
<br><br>
<small class=\"h5\">
<a href=\"";
// line 131
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cg");
yield "\" class=\"text-white\">Conditions générales</a>
· <a href=\"";
// line 132
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cgv");
yield "\" class=\"text-white\">Conditions générales de ventes</a>
· <a href=\"";
// line 133
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ml");
yield "\" class=\"text-white\">Mentions légales</a>
· <a href=\"";
// line 134
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("confidentialite");
yield "\" class=\"text-white\">Politique de confidentialité</a>
</small>
</p>
</footer>
</main>
<script src=\"https://code.jquery.com/jquery-3.5.1.slim.min.js\"></script>
<script src=\"";
// line 141
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/bootstrap.bundle.js"), "html", null, true);
yield "\"></script>
<script src=\"https://js.stripe.com/v3/\"></script>
<script>
var stripe = Stripe(\x27pk_test_51MmMexI1PfFa9viOYqTeiLsEwHggcXbngjC2pMdIQeGIoEpFKXLrQJdfJQKOOUloRbbj1dJZyJ9jKXymdpCKvWwW00kx87PAdl\x27);
var checkoutButton = document.getElementById(\x27checkout-button\x27);
checkoutButton.addEventListener(\x27click\x27, function() {
";
// line 150
if (array_key_exists("reference", $context)) {
// line 151
yield " // Créer une session de paiement avec Stripe
fetch(\x27create-checkout-session/";
// line 152
yield (string) $this->escaper->escape((isset($context["reference"]) || array_key_exists("reference", $context) ? $context["reference"] : (function () { throw new RuntimeError('Variable "reference" does not exist.', 152, $this->source); })()), "html", null, true);
yield "\x27) // remplacez cette URL par l\x27URL de votre route Symfony qui crée une session de paiement avec Stripe
.then(function(response) {
return response.json();
})
.then(function(session) {
if(session.error == \"order\"){
// redirection (la commande n\x27a pas été créée correctement)
window.location.replace(\x27";
// line 159
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("order");
yield "\x27)
} else{
// Rediriger l\x27utilisateur vers la page de paiement de Stripe
return stripe.redirectToCheckout({ sessionId: session.id });
}
})
.then(function(result) {
// Afficher un message d\x27erreur si la redirection échoue
if (result.error) {
alert(result.error.message);
}
});
";
} else {
// line 172
yield " alert(\x27La référence n\\\x27est pas définie.\x27);
";
}
// line 174
yield " });
</script>
</body>
</html>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield;
}
// line 120
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 121
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "base.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDefaultEscapeStrategy(): string|false
{
return "html";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 358 => 121, 345 => 120, 330 => 174, 326 => 172, 310 => 159, 300 => 152, 297 => 151, 295 => 150, 283 => 141, 273 => 134, 269 => 133, 265 => 132, 261 => 131, 250 => 122, 248 => 120, 242 => 119, 238 => 117, 214 => 96, 199 => 84, 190 => 78, 181 => 72, 170 => 63, 168 => 62, 160 => 56, 155 => 54, 150 => 53, 148 => 52, 143 => 50, 139 => 49, 135 => 47, 127 => 45, 117 => 43, 115 => 42, 107 => 37, 101 => 34, 89 => 25, 75 => 14, 70 => 12, 66 => 11, 54 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<!doctype html>
<html lang=\"fr\">
<head>
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
<meta name=\"description\" content=\"Site de vente en ligne en Symfony 5\">
<meta name=\"author\" content=\"Cassano Gabriele\">
<title>GC Belgian Shop</title>
<link href=\"{{ asset(\x27assets/css/bootstrap.min.css\x27) }}\" rel=\"stylesheet\">
<link href=\"{{ asset(\x27assets/css/boutiquebelge.css\x27) }}\" rel=\"stylesheet\">
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css\">
<link href=\"{{ asset(\x27assets/css/carousel.css\x27) }}\" rel=\"stylesheet\">
\t\t<style>
.sf-toolbar {
display: none !important;
}
\t\t</style>
</head>
<body>
<header>
<nav class=\"navbar navbar-expand-md navbar-dark fixed-top bg-info\">
<a class=\"navbar-brand\" href=\"{{ path(\x27home\x27) }}\">GC Belgian Shop</a>
<button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarCollapse\" aria-controls=\"navbarCollapse\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
<span class=\"navbar-toggler-icon\"></span>
</button>
<div class=\"collapse navbar-collapse\" id=\"navbarCollapse\">
<ul class=\"navbar-nav mr-auto\">
<li class=\"nav-item active\">
<a class=\"nav-link\" href=\"{{path(\x27about\x27)}}\">Qui sommes-nous ?</a>
</li>
<li class=\"nav-item active\">
<a class=\"nav-link\" href=\"{{path(\x27products\x27)}}\">Nos produits</a>
</li>
</ul>
<div class=\"navbar-item-custom\">
{% if app.user %}
<a href=\"{{ path(\x27account\x27)}}\">Mon compte <small>({{ app.user.firstname }})</small></a> | <a href=\"{{ path(\x27app_logout\x27)}}\"> Déconnecter</a>
{% else %}
<a href=\"{{ path(\x27app_login\x27)}}\">Connexion </a> | <a href=\"{{ path(\x27register\x27)}}\"> Inscription</a>
{% endif %}
</div>
<a href=\"{{ path(\x27cart\x27)}}\"><i class=\"fas fa-shopping-cart text-light ml-2\"></i></a>
<span class=\"text-white ml-2\">({{ cartItemCount() }})</span>
{% if app.user %}
<a href=\"{{ path(\x27wishlists\x27)}}\"><i class=\"fas fa-heart text-light ml-2\"></i></a>
<span class=\"text-white ml-2\" id=\"wishlist-count\">({{ wishlistItemCount() }})</span>
{% endif %}
</div>
</div>
</nav>
</header>
<main role=\"main\">
{% if block(\x27carousel\x27) is defined %}
<div id=\"myCarousel\" class=\"carousel slide custom-carousel\" data-ride=\"carousel\">
<ol class=\"carousel-indicators\">
<li data-target=\"#myCarousel\" data-slide-to=\"0\" class=\"active\"></li>
<li data-target=\"#myCarousel\" data-slide-to=\"1\"></li>
<li data-target=\"#myCarousel\" data-slide-to=\"2\"></li>
</ol>
<div class=\"carousel-inner\">
<div class=\"carousel-item active\">
<img src=\"{{ asset(\x27assets/img/slider/slider1.jpg\x27) }}\" alt=\"Image 1 du slider\" />
<div class=\"container\">
<div class=\"carousel-caption text-left\">
<h1>Achetez des produits belges</h1>
<p>Un large choix de bières belges.</p>
<p><a class=\"btn btn-lg btn-primary\" href=\"{{ path(\x27register\x27)}}\" role=\"button\">S\x27inscrire aujourd\x27hui</a></p>
</div>
</div>
</div>
<div class=\"carousel-item\">
<img src=\"{{ asset(\x27assets/img/slider/slider2.jpg\x27) }}\" alt=\"Image 2 du slider\" />
<div class=\"container\">
<div class=\"carousel-caption\">
<h1>Dégustez le café belge</h1>
<p>Découvrez les cafés fabriqués dans notre pays.</p>
<p><a class=\"btn btn-lg btn-primary\" href=\"#\" role=\"button\">Lire plus</a></p>
</div>
</div>
</div>
<div class=\"carousel-item\">
<img src=\"{{ asset(\x27assets/img/slider/slider3.jpg\x27) }}\" alt=\"Image 3 du slider\" />
<div class=\"container\">
<div class=\"carousel-caption text-right\">
<h1>Le chocolat belge</h1>
<p>Comme vous le savez, les belges sont spécialistes de la bière, le chocolat et les frites.</p>
<p><a class=\"btn btn-lg btn-primary\" href=\"#\" role=\"button\">Voir la gallerie</a></p>
</div>
</div>
</div>
</div>
<a class=\"carousel-control-prev\" href=\"#myCarousel\" role=\"button\" data-slide=\"prev\">
<span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>
<span class=\"sr-only\">Previous</span>
</a>
<a class=\"carousel-control-next\" href=\"#myCarousel\" role=\"button\" data-slide=\"next\">
<span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>
<span class=\"sr-only\">Next</span>
</a>
</div>
{% endif %}
<div class=\"container marketing {% if block(\x27carousel\x27) is not defined %} mt-5 {% endif %}\">
{% block content %}
{% endblock %}
</div>
<footer class=\"footer-custom bg-info\">
<p class=\"h5 mb-5 mt-3\">
© 2023 - <a href=\"https://gabriel-cassano.be\" style=\"color:white;\">Gabriele Cassano</a> - Tous droits réservés
<br><br>
<small class=\"h5\">
<a href=\"{{ path(\x27cg\x27)}}\" class=\"text-white\">Conditions générales</a>
· <a href=\"{{ path(\x27cgv\x27)}}\" class=\"text-white\">Conditions générales de ventes</a>
· <a href=\"{{ path(\x27ml\x27)}}\" class=\"text-white\">Mentions légales</a>
· <a href=\"{{ path(\x27confidentialite\x27)}}\" class=\"text-white\">Politique de confidentialité</a>
</small>
</p>
</footer>
</main>
<script src=\"https://code.jquery.com/jquery-3.5.1.slim.min.js\"></script>
<script src=\"{{ asset(\x27assets/js/bootstrap.bundle.js\x27) }}\"></script>
<script src=\"https://js.stripe.com/v3/\"></script>
<script>
var stripe = Stripe(\x27pk_test_51MmMexI1PfFa9viOYqTeiLsEwHggcXbngjC2pMdIQeGIoEpFKXLrQJdfJQKOOUloRbbj1dJZyJ9jKXymdpCKvWwW00kx87PAdl\x27);
var checkoutButton = document.getElementById(\x27checkout-button\x27);
checkoutButton.addEventListener(\x27click\x27, function() {
{% if reference is defined %}
// Créer une session de paiement avec Stripe
fetch(\x27create-checkout-session/{{ reference }}\x27) // remplacez cette URL par l\x27URL de votre route Symfony qui crée une session de paiement avec Stripe
.then(function(response) {
return response.json();
})
.then(function(session) {
if(session.error == \"order\"){
// redirection (la commande n\x27a pas été créée correctement)
window.location.replace(\x27{{ path(\x27order\x27) }}\x27)
} else{
// Rediriger l\x27utilisateur vers la page de paiement de Stripe
return stripe.redirectToCheckout({ sessionId: session.id });
}
})
.then(function(result) {
// Afficher un message d\x27erreur si la redirection échoue
if (result.error) {
alert(result.error.message);
}
});
{% else %}
alert(\x27La référence n\\\x27est pas définie.\x27);
{% endif %}
});
</script>
</body>
</html>", "base.html.twig", "/home/gabriel-cassano-boutiquebelge/htdocs/boutiquebelge.gabriel-cassano.be/templates/base.html.twig");
}
}