# 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


:::tip
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](https://dashboard.stripe.com/register) 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](https://dashboard.stripe.com/login)

**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](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/32082573-2572-4968-9afa-e69dcf87fddf/9e6267ef-131c-45fc-8d07-f79d7eb9543a/image.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20261021%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20261021T003000Z&X-Amz-Expires=86400&X-Amz-Signature=820e63756517e24483036cae1cc04a6a84a85083cb7db2d72c6412da606ac577&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =294x318")


:::success
**Result →** *You will successfully **sign in** into your stripe account*

:::


*Video for your reference 👇🏻*

 ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/32082573-2572-4968-9afa-e69dcf87fddf/083c4349-71c7-4aad-a0f7-c380a9c578fc/strip.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20261021%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20261021T003000Z&X-Amz-Expires=86400&X-Amz-Signature=6a92e3dc02ce66d4d23903c47c949fdbd2326b78fa97d6d8bccb9bdb8796fef1&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =832x340")




---

## 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](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/2d0e099f-d45a-4347-aed8-24eb03c8c1e8/c567a18e-cd23-484a-ad6c-e2b85ab8cf74/image.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20261021%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20261021T003000Z&X-Amz-Expires=86400&X-Amz-Signature=c160e730711e7deeb20a71a90ca36b6a62859af5ef008d45a57219e48cd3aa4c&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)


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` and `Live mode` on Stripe portal will make no impact on your Foodship portal. Foodship portal connects to Stripe system via API keys and if you use `Test API keys` your portal will work on `Test mode` and if you use `Live API keys` your portal will work on `Live / 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](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/32082573-2572-4968-9afa-e69dcf87fddf/c6275733-cabd-47de-a15b-93bc6d8352c2/Untitled%20%281898%20%C3%97%20866%20px%29%20%2812%29.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20261021%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20261021T003000Z&X-Amz-Expires=86400&X-Amz-Signature=4ad3cf0c623745bc9c3d1a50c4a639bf5571b0eca3f3bf371b716f60f975077d&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =832x379")



:::tip
*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.* 

:::



:::success
***Result → Live Mode - The publishable key and Secret key have been generated successfully.***

:::


**Step 4 -** Paste both keys into the admin portal of Foodship.



:::info
[***Click Here***](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/stripe-api-key-integration-in-foodship-pos-3MuW3BHbu2) *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](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/32082573-2572-4968-9afa-e69dcf87fddf/daa6eb63-4366-4f7c-8dd2-86be13f4d58f/Untitled%20%281898%20%C3%97%20866%20px%29%20%2811%29.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20261021%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20261021T003000Z&X-Amz-Expires=86400&X-Amz-Signature=ad7bdf42a705f26099846dd5b5f6333eb3258fe954a7c27c1ea7bcdef47669ab&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)


:::success
***Result → Test Mode: The publishable key and secret key have been generated successfully.***

:::


**Step 4 -** Paste both keys into the admin portal of Foodship.



:::info
[***Click Here***](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/stripe-api-key-integration-in-foodship-pos-3MuW3BHbu2) *to learn how to use publishable and secret keys on the admin portal of Foodship’s point of sale.*

:::

---

**Documents**

- [POS - App Login](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/pos-app-login-4DzM9kIPXL)
- [POS-Front House](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/pos-front-house-eTfDrSTWrv)
- [Floors and Tables](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/floors-and-tables-YMYZouUSLo)
- [Work Period](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/work-period-iWxNUU86bz)
- [Tickets](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/tickets-LLMZAYCm46)
- [Menu Action](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/menu-action-6zT87Xk9gi)
- [Online Orders](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/online-orders-Z2UGGFHRhS)
- [Back Office / Admin Panel](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/back-office-admin-panel-Z7v11Bxoa0)
- [QR Code - Dine in](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/qr-code-dine-in-OmOJDDEoM2)
- [Inventory](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/inventory-93qJngeb80)
- [Menu Categories](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/menu-categories-SHoQVpAOSF)
- [Menu](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/menu-L9cnpy5xRP)
- [Reporting](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/reporting-nsuC1cLB2s)
- [Cashdrop](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/cashdrop-NMgBkKtMqf)
- [Expense](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/expense-2ixfPCm1ch)
- [Discount](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/discount-QOns4532Gn)
- [Tax and Surcharge](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/tax-and-surcharge-iqdOftII3T)
- [Add an Employee](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/add-an-employee-4eBLZYTaoC)
- [Employee Rostering](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/employee-rostering-YhKZuYjerY)
- [POS - Backoffice Setting](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/pos-backoffice-setting-yTocM858Ff)
- [POS- Printer grouping tags](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/pos-printer-grouping-tags-08sukBVGsb)
- [Item Reporting by Tags](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/item-reporting-by-tags-dfKNDEU9Go)
- [Reprint KOT - Print Queue](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/reprint-kot-print-queue-WhPI0ygqHu)
- [Stripe API Key Integration in Foodship POS](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/stripe-api-key-integration-in-foodship-pos-3MuW3BHbu2)
- [Tyro setup in POS](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/tyro-setup-in-pos-6APxPAfFuE)
- [Generate API keys in the Stripe Payment Gateway](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/generate-api-keys-in-the-stripe-payment-gateway-ijWpsdeZW2)
- [Enable Apple pay | Google pay in Stripe](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/enable-apple-pay-google-pay-in-stripe-gxfKhRkhCN)
- [How to Connect Your Printer to WiFi?](https://foodship.getoutline.com/s/point-of-sale-knowledge-base/doc/how-to-connect-your-printer-to-wifi-QBLTv58goy)