23. Stripe Setup
Stripe payment gateway is fully supported by Foodship products. To connect Stripe payment gateway with your Foodship online ordering system you need your API keys and that is provided by Stripe. Its like pair of secret code which will connect your stripe account with online ordering system .
This instruction will guide you on how to generate these api keys from stripe and how to apply them in your Foodship online ordering system.
Sign in to Stripe
This instruction is written with assumption that you already have a stripe account. If you dont have one already please use this link to signup. Stripe generally ask around five to seven simple question to signup.
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
Video for your reference 👇🏻

Live mode and Test mode
When you sign up for stripe you get two kind 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 to go live for customers.
Test mode
Test mode is used to charge demo credit cards to test your portal’s functionality. test mode cannot process real credit card and will throw an error when attempted.
How to switch modes
Test mode and live mode both works exactly the same way functionality wise apart from the being used for testing and production environment. To turn on test mode simply click the toggle button as shown in image below. In the image below 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 modeandLive modeon Stripe portal will make no impact on your Foodship portal. Foodship portal connects to Stripe system via API keys and if you useTest API keysyour portal will work onTest modeand if you useLive API keysyour 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 publishable key)
Step 3 - Copy the Secret key (refer to image below to find secret key)

Page - from where you can copy both keys
You can only reveal / see secret key once. If you miss to copy and paste it, you will have to roll out existing key by clicking on 3 dots in front of secret key to generate new secret key. note: when you roll existing secret key the old key will stop working.
Step 4 - Paste both keys on the admin portal of Foodship.
To know, how to paste publishing and stripe keys on the admin portal of Foodship → click here
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)

Step 4 - Paste both keys on the admin portal of Foodship.
To know, how to paste publishing and stripe keys on the admin portal of Foodship → click here
Stripe Setup in Foodship
To setup the stripe payment method in Foodship online ordering system.
Step 1 - Login to the admin portal and go to the “settings” option from left side of the page.
Step 2 - From the drop-down menu, select the settings option.

Setting option in Foodship
Step 3 - Click on the “Payments Option” button from the settings and → paste the copied publishing key in the API key bar | secret key in the secret key bar ( for better understanding see image below)

Stripe setup in Foodship
Step 4 - Enable Stripe Payment Integration and click on the “submit” button.
Result → Your stripe payment method is ready in Foodship.