B
B
BonBon Slick2017-03-04 14:58:41
Stripes
BonBon Slick, 2017-03-04 14:58:41

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

1 answer(s)
S
Sungat Arynov, 2017-03-09
@BonBonSlick

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 question

Ask a Question

731 491 924 answers to any question