Skip to main content

How to set up Stripe payments

How to connect Stripe to Teach 'n Go — including using a restricted API key, and why you must copy the full key, not the shortened preview.

Written by Abdullah Al-Hussein
Available Countries: Find Stripe in Your Country | Stripe

Stripe lets your school accept online card payments directly through invoices, the portal and the booking page. You connect it once by pasting two API keys from your Stripe account into Teach 'n Go. Stripe availability depends on your country — check the list of supported countries on Stripe's website.

To learn what happens after a student or parent pays, see How Stripe payments work in Teach 'n Go.

Creating a Stripe account

  1. Go to Stripe.com and log in, or create an account if you don't have one.

  2. Use an account name your customers will recognise — it appears on their payment receipts.

Getting your API keys

Teach 'n Go needs two keys — a Publishable key and a secret key. You can use either your account's standard secret key or a restricted key with limited permissions (see the next section).

  1. In Stripe, make sure you are not in Test mode.

  2. Click Developers, then select API keys.

  3. Copy your Publishable key — it starts with pk_live_.

  4. Click Create secret key, then click Reveal key and copy it.

Copy the full key, not the shortened preview. A real key is around 107 characters long. If what you paste contains three dots in the middle, like sk_live_...P6b7, you copied the hidden preview from the Stripe page — go back, click Reveal key, and copy the whole key.

Using a restricted key instead

If you prefer not to give Teach 'n Go your full secret key, use a restricted key. It works exactly the same in Teach 'n Go, but it cannot touch payouts, refunds or anything else you leave switched off.

  1. In Stripe, go to Developers → API keys and click Create restricted key.

  2. Name it, for example Teach n Go, and set the permissions below.

  3. Click Create key, then Reveal key, and copy the whole key — it starts with rk_live_.

Permissions

Access

Checkout Sessions, Customers, Subscriptions, Products, Invoices, Payment Intents, Payment Methods, Charges, Coupons, Webhook Endpoints

Write

Balance, Tokens

Read

Everything else, including Refunds and Payouts

None

Adding your keys to Teach 'n Go

  1. Log in to Teach 'n Go as an admin.

  2. Go to School settings and open the Stripe payments tab.

  3. Tick Enable Stripe payments.

  4. Paste your Publishable key and your secret or restricted key.

  5. Click Save.

Testing your setup

  1. Create a test student and apply a small fee.

  2. Create a portal account and log in as the student.

  3. Pay the fee in the school portal with a real card, then refund it in Stripe.

Once connected, your school can take card payments through invoices, recurring monthly fees, the portal and the booking page.

Did this answer your question?