Answer the question
In order to leave comments, you need to log in
Did you not set a valid publishable key Stripe?
Piece of code:
<form action="/code" method="POST">
{{ csrf_field() }}
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="here_goes_my_test_publishable_key"
data-amount="999"
data-name="Demo Site"
data-description="Widget"
data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
data-locale="auto">
</script>
</form>
//вернет ошибку
You did not set a valid publishable key. Call Stripe.setPublishableKey() with your publishable key.
For more info, see https://stripe.com/docs/stripe.js
Answer the question
In order to leave comments, you need to log in
data-key="here_goes_my_test_publishable_key"
This is where your "publishable key" or "published key" is needed. Find them in Account=>Api Keys in Stripe.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question