Learn how to connect Stripe in our step-by-step guide

This guide will show you how to quickly find and fix errors with your Stripe integration 🛠

The good news is that fixing errors in Stripe is not too hard. The Stripe Checkout integration is intelligent enough to give you a clue of what is going wrong with the integration setup.

First, you need to figure out what exactly went wrong.

Finding the error

Step 1/3

Open the Unicorn Platform page with the Stripe Integration installed.

Unicorn Platform pricing table

Step 2/3

Open the browser console (⌥ + ⌘ + J on macOS, or Shift + CTRL + J on Windows/Linux)

Google Chrome console

Step 3/3

Click your Stripe-powered button. The problem will be helpfully displayed in the console, or as a browser message.

Stripe integration error message

How to fix

Wrong ID

"Invalid value for stripe.redirectToCheckout: items.0.plan should be a string or items.0.sku should be a string. You specified items.0.plan as undefined and items.0.sku as undefined."

When you encounter this error, you can also see a more human-friendly browser message.

Wrong ID error message in Google Chrome

This error means that you have a problem with your price ID.

Price ID field in Unicorn Platform

For example, it can happen if you made a typo, or copied a product ID instead of a price ID.

To fix that, make sure that you have pasted the full price ID of your product (it always starts with price_)

Price ID in Stripe dashboard

Correct price ID pasted to Unicorn Platform

Wrong API key

"No such plan: "price_"; a similar object exists in live mode, but a test mode key was used to make this request."

Stripe has two modes: test and live.

If you created a product in the live mode, the API key should also be live.

Stripe API keys

Please make sure that you are using a live API key. It should start with pk_live

Correct API key pasted to Unicorn Platform

Domain not added

"The domain (https://domain.com) that redirected to Checkout is not enabled in the dashboard. Add this domain at https://dashboard.stripe.com/account/checkout/settings."

To fix that, make sure that you have added your website's domain to the domain list in Stripe.

Make sure to enter your domain twice: with and without www

Domain correctly added to Stripe

FAQ

My error is not on the list

Our support crew and the founder are always happy to help you with setting up your website 🙂 Just let us know in the live chat.
Was this article helpful?
Cancel
Thank you!