Generate API keys in the Stripe Payment Gateway
Stripe Payment is fully supported by Foodship products. To connect the Stripe payment gateway with your Foodship's point of sale software, you need the API keys provided by Stripe. They act as a pair of secret codes that establish the connection between your Stripe account and the point-of-sale software.
This instruction will guide you on how to generate these API keys from Stripe and how to apply them in your Foodship’s point-of-sale software.
Sign in to Stripe
This instruction is written with the assumption that you already have a Stripe account. If you don’t have one already, please use this link to sign up. To set up the Stripe account, you need to provide the following information like xxxxxxx to sign up.
To sign in to stripe , please follow the given steps -
Step 1 - Visit stripe website “stripe.com” or click here
Step 2 - Enter the login credentials - email | password and click on the “Continue” button (for better understanding refer to the below)

stripe sign in page
Result → You will successfully sign in into your stripe account
Video for your reference 👇🏻

Live mode and Test mode
When you sign up for Stripe, you get two kinds of modes: a Live mode and a Test mode
Live Mode
Live mode is used to charge real credit cards for real transactions. You should use this if your portal is ready live for customers.
Test mode
Test mode is used to charge demo credit cards to test your portal’s functionality. Note: Test mode cannot process real credit card and will throw an error when attempted.
How to switch modes
Test mode and live mode both work exactly the same way in terms of functionality, except they are used for testing and the production environment, respectively. To turn on test mode, simply click the toggle button, as shown in the image below. In the image, the test mode is off, and Stripe is operating in live mode.

Switch between test mode and live mode
You get two API keys to connect stripe with online ordering - Publishable keys and Secret Keys and you get separate API’s for live mode and test mode.
Live keys start from | Test Keys start from |
---|---|
Publishable key - pk_live | Publishable key - pk_test |
Secret key - sk_live | Secret key - sk_test |
Switching between
Test mode
andLive mode
on Stripe portal will make no impact on your Foodship portal. Foodship portal connects to Stripe system via API keys and if you useTest API keys
your portal will work onTest mode
and if you useLive API keys
your portal will work onLive / production mode
.
Generate API
To generate live API -
Live Keys
Step 1 - Click on the “Developers” button on the top-right corner of the page and select “API keys”
Step 2 - Copy the Publishable key (refer to image below to find the publishable key)
Step 3 - Copy the Secret key (refer to image below to find the secret key)

Page - from where you can copy both keys
You can only reveal or see the secret key once. If you miss copying and pasting it, you will have to roll out the existing key by clicking on the 3 dots in front of the secret key to generate a new secret key.
Note: when you roll the existing secret key the old key will stop working.
Result → Live Mode - The publishable key and Secret key have been generated successfully.
Step 4 - Paste both keys into the admin portal of Foodship.
Click Here to learn how to use publishable and stripe keys on the admin portal of Foodship’s point of sale.
Test Keys
Test keys are used to test integrations with your Stripe API through demo cards.
To generate test keys, you have to simply enable “test mode.” Follow the steps below to test integrations with your Stripe account.
Step 1 - Click on the “Developers” button on the top-right corner of the page and enable “test mode.”
Step 2 - Copy the Publishable key (mentioned in the image below, from where you can copy publishing keys)
Step 3 -Copy the Secret key (mentioned in the image below, from where you can copy secret keys)

Page - from where you can copy both keys
Result → Test Mode: The publishable key and secret key have been generated successfully.
Step 4 - Paste both keys into the admin portal of Foodship.
Click Here to learn how to use publishable and secret keys on the admin portal of Foodship’s point of sale.