<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>


<form method="POST" action="{{ route('stripe.checkout') }}">
    @csrf
    <button type="submit" class="btn btn-primary">
        Pay with Stripe
    </button>
</form>
<script src="https://js.stripe.com/clover/stripe.js"></script>
<script>
    var stripe = Stripe('pk_test_TYooMQauvdEDq54NiTphI7jx');
    var elements = stripe.elements({
  clientSecret: 'CLIENT_SECRET',
});
</script>
</body>
</html>
