What is actually going on with that script element; you have class and data- attributes on it, why? This is not what script elements are for; are you missing a button element?
<script src="https://checkout.stripe.com/checkout.js"></script>
<button class="stripe-button"
data-key="{{ env('STRIPE_PUB_KEY') }}"
data-name="The NosoSailing"
data-description="Online course about integrating Stripe"
data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
data-locale="auto"
data-currency="eur"
>
Pay now
</button>
Also, do not use the env() helper method except in config files; we read environment variables into config (which is cached). Generally, we use the config/services.php config file for Stripe keys:
// config/services.php
return [
// ... other services credentials
'stripe' => [
'secret_key' => env('STRIPE_SECRET_KEY'),
'publishable_key' => env('STRIPE_PUB_KEY'),
]
];