I have a stripe button on my website and I want to add my custom class to it. I discovered that manually creating the CSS for it can work, but I prefer to maintain consistency across all buttons on my site by using my custom class.
No matter what I attempt, I am unable to remove the default button styling.
<form action="/update-the-card" method="POST">
{{ csrf_field() }}
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="{{ env('STRIPE_KEY') }}"
data-name="My site"
data-panel-label="Update Card"
data-label="Update Card"
data-allow-remember-me=false
data-locale="auto">
</script>
</form>
The class I want to apply is 'button fstyle1 thin
'.
I've attempted the following code, but it does not achieve the desired outcome.
$('button.stripe-button-el').removeAttr('style').addClass('button fstyle1 thin')