Skip to content

Commit

Permalink
Update index.md (gatsbyjs#7469)
Browse files Browse the repository at this point in the history
* Update index.md

checkout.js fails at 'StripeCheckout', disabled eslint in the componentDidMount function as a fix.

* Use a known global
  • Loading branch information
nayres authored and m-allanson committed Sep 3, 2018
1 parent 75d3efa commit 67fb3ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/ecommerce-tutorial/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const Checkout = class extends React.Component {
}

componentDidMount() {
this.stripeHandler = StripeCheckout.configure({
this.stripeHandler = window.StripeCheckout.configure({
// You’ll need to add your own Stripe public key to the `checkout.js` file.
// key: 'pk_test_STRIPE_PUBLISHABLE_KEY',
key: "pk_test_kuhbxb0MMZsp6fj6aTNDnxUu",
Expand Down

0 comments on commit 67fb3ed

Please sign in to comment.