add redirect properly
This commit is contained in:
parent
d9a48ea714
commit
8336136adc
|
@ -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>
|
Loading…
Reference in New Issue