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

18 lines
361 B
Twig
Raw Permalink Normal View History

2019-07-18 12:13:43 +02:00
<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>