29. Stripe 2.0

Sign in to Your Stripe Account

Step 1: Sign In

  1. Open this link:
    https://dashboard.stripe.com/login

  2. Enter your email ID and password

  3. Click the Sign in button


→ If your browser is already logged in with Google:

  • Click Sign in with Google

  • Select or confirm your Gmail ID

  • You will be signed in automatically


Sign In

Sign In



Step 2: Access the Stripe Dashboard

  • After signing in, you will see the Stripe Dashboard

  • This is your main control panel where you manage payments, settings, and keys


Fetch Keys

Step 2.1: Go to Developers → API Keys

  1. Look at the bottom-left corner of the dashboard → Click on Developers

  2. Select API keys option.

Here, you will see:

  • Publishable key

  • Secret key

  • Keys shown for Test mode

(In the small GIF shown, you can see Test keys for publishing and secret.)

Stripe Keys

Stripe Keys



Step 2.2: Understand Test Mode vs Live Mode

Live Mode

Test Mode

  • Used for real customer payments

  • Charges real credit and debit cards

  • Money is transferred to your bank account

  • Used only for testing

  • Charges demo credit cards only

  • Real credit cards will NOT work

  • If a real card is used, Stripe will show an error

  • Useful to check if your portal is working correctly

Step 3: Switch to Live Mode

  1. On the Stripe dashboard, click Switch to live account

  2. If you have not added bank account details, Stripe will ask you to:

    • Enter bank account information

    • Complete basic verification


Test to Live Keys

Test to Live Keys



Important

  • Stripe will not provide Live keys until bank details are added


Step 3.1: Get Your Live API Keys

Once bank details are added:

  1. Go again to:

    • Developers → API keys

  2. You can now see and copy your Live keys

Key Types and Formats

Live keys start from

Test Keys start from

Publishable key - pk_live

Publishable key - pk_test

Secret key - sk_live

Secret key - sk_test

⚠️ Important

  • Do not share your Keys with anyone



Using Stripe Keys with Foodship

  • Foodship connects to Stripe using API keys

  • Switching Test or Live mode inside Stripe does NOT affect Foodship directly

How It Works:

  • If you add Test API keys → Foodship works in Test mode

  • If you add Live API keys → Foodship works in Live / Production mode

So:

  • Test keys = testing only

  • Live keys = real payments


Enable - Gpay & Apple Pay


Active- Apple Pay in Stripe

To activate Apple Pay in Stripe, sign in to your Stripe account and follow the given steps:

Step 1 - Click on the Setting symbol

Step 1.1 - Go to Settings option

Step 1.2 - Select Payment methods option


Settings - Stripe

Settings - Stripe




Step 2 - Scroll down and Active Apple Pay → click on the configure domains option.


Apple Pay - Configure Domain

Apple Pay - Configure Domain




Step 3 - On the Payment method domains page, Click on Add new domain.

Step 3.1 - Mention your domain name

Step 3.2 - Click on Save and continue


Apple Pay - Configure Domain

Apple Pay - Configure Domain




Verify domain with Apple Pay

Step 4 - Once a domain is added it will prompt you to verify the domain -> download the verification file and share that file with us at support@foodship.org




Active - Google Pay in Stripe

To activate Google Pay in Stripe, sign in to your Stripe account and please follow the given steps -

Step 1 - Click on the Setting symbol

Step 1.1 - Go to Settings option

Step 1.2 - Select the Payment methods option



Settings - Stripe

Settings - Stripe




Step 2 - Active Google Pay and click on Configure domains option


Google Pay- Configure Domain

Google Pay- Configure Domain




Step 3 - On the Payment method domains page, Click on Add new domain.

Step 3.1 - Mention your domain name

Step 3.2 - Click on Save and continue


Google Pay- Configure Domain

Google Pay- Configure Domain