symfony-billing/BillingBundle/Resources/view/redirectToStripe.html.twig

18 lines
361 B
Twig

<html>
<head>
<title>Symfony Billing Lab</title>
</head>
<body>
</body>
<script src="https://js.stripe.com/v3/"></script>
<script>
var stripe = Stripe('{{ stripe_public_key }}');
stripe.redirectToCheckout({
sessionId: '{{ rsStripe.id | escape('js') }}'
}).then(function (result) {
console.log(result);
});
</script>
</html>