Troubleshooting Stripe
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.
Open the Unicorn Platform page with the Stripe Integration installed.
Open the browser console (⌥ + ⌘ + J on macOS, or Shift + CTRL + J on Windows/Linux)
Click your Stripe-powered button. The problem will be helpfully displayed in the console, or as a browser message.
"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.
This error means that you have a problem with your price ID.
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_)
"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.
Please make sure that you are using a live API key. It should start with pk_live
"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
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.
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.
Step 2/3
Open the browser console (⌥ + ⌘ + J on macOS, or Shift + CTRL + J on Windows/Linux)
Step 3/3
Click your Stripe-powered button. The problem will be helpfully displayed in the console, or as a browser 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.
This error means that you have a problem with your price ID.
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_)
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.
Please make sure that you are using a live API key. It should start with pk_live
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
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.
Updated on: 20/01/2022
Thank you!