add redirect properly

This commit is contained in:
Cyprian Beauvois 2019-07-18 12:13:43 +02:00
parent d9a48ea714
commit 8336136adc
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<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>