Collect fees by Direct Debit through your school's own GoCardless account. This guide takes you from connecting the account to your first collection, and explains what happens afterwards.
Before you start
- You have a GoCardless account, and you can sign in to its dashboard. If you do not have an account please signup using our referral link
- You are an admin in e-maktab.
- Your currency is GBP, EUR. GoCardless collects through Bacs, SEPA or BECS Direct Debit.
- Stripe is not connected. A Maktab can collect through one provider only. If Stripe is connected, deactivate it first.
Set up step by step
Step 1: Create an access token in GoCardless
Sign in to your GoCardless dashboard and go to Developers → Create → Access token.
- Give it a name you'll recognise, such as e-maktab.
- Choose read-write access. e-maktab needs it to create payments.
- Copy the token straight away and keep it somewhere safe until step 3.
Note: use a live token (it starts with
live_). e-maktab refuses sandbox tokens on your school's live site.
Step 2: Create a webhook endpoint in GoCardless
GoCardless tells e-maktab when a payment is collected, fails or is paid out by sending messages to this address. In the Developers area, create a webhook endpoint with this URL, replacing your-school with your e-maktab subdomain:
https://{subdomain}.e-maktab.co.uk/webhooks/gocardless
The exact address for your school is also shown on the GoCardless page in e-maktab, under the Webhook Secret field.
When the endpoint is created, GoCardless shows its secret. Copy it for step 3.
Step 3: Connect GoCardless in e-maktab
- In the left menu, open Integrations → GoCardless.
- Paste the access token into GoCardless Access Token.
- Paste the webhook secret into GoCardless Webhook Secret.
- Click Submit.
e-maktab checks the token with GoCardless before saving it. When it's accepted you'll see "GoCardless connected", and you're taken to the Link existing customers page.
Your keys stay private. Once saved, the token and secret are never shown again: the fields only say "Saved, ending in …" with the last 4 characters.
To change one later, paste the new value. A field left blank keeps the saved value.
Step 4: Link parents who already pay you through GoCardless (if you already use GoCardless)
If parents already have a Direct Debit mandate with your school in GoCardless, link them to their e-maktab parent. Linked parents don't need to do anything.
- Open Integrations → GoCardless → Link existing customers.
- The page lists GoCardless customers with a mandate who aren't linked to a parent yet.
- A row is ticked for you when exactly one parent and one customer share the same email address, marked Email match. Check these before linking.
- For any other row, choose the parent from the list and tick Link.
- Click Link selected.
Important: customers with a GoCardless subscription
If a customer still pays through a subscription in GoCardless, it's shown in the Subscriptions column. That row isn't ticked for you, because the parent would be charged twice: once by the subscription and once by e-maktab.
To link them, tick Cancel in GoCardless when linking. The subscription is cancelled first, then the parent is linked. A cancelled subscription can't be restarted.
Step 5: Ask the other parents to set up Direct Debit
Parents set up their own mandate from the parent portal:
- They open Account settings and click Enable Direct Debit.
- They enter their bank details on GoCardless' secure pages. e-maktab never sees their bank details.
- They're brought back to e-maktab. Their Direct Debit shows as enabled straight away, or once GoCardless confirms it.
If a parent is with you in person, you can start the same setup from their parent page with the Set up button next to Direct Debit.
Step 6: Check each parent's mandate
On a parent's page, the GoCardless Mandate row shows where their mandate stands, with its reference and a View in GoCardless link:
- Active: ready to collect.
- Pending: waiting for the parent's bank.
- Failed / Cancelled: can't be used.
- Status unavailable: GoCardless couldn't be reached. Try again shortly.
A mandate usually becomes active within a few working days.
How fees are collected
e-maktab collects every unpaid invoice that:
- was created more than 5 days ago,
- belongs to an enrolled student whose parent has an active or pending mandate,
- hasn't already been sent for collection.
It collects the full amount still owed, once per invoice. Parents can also pay an invoice straight away from the parent portal.
Direct Debit takes a few working days. You can follow each collection on the invoice's timeline:
- Direct Debit requested, with the date the parent will be charged.
- Submitted to the bank, over the next working days.
- Payment received on the charge date. The invoice is marked paid.
- Payout due, then paid out: when GoCardless sends the money to your bank account.
When something goes wrong
| What happened | What e-maktab does | What you do |
|---|---|---|
| A payment fails (for example, insufficient funds) | Marks the payment failed, emails the parent, alerts you, and shows GoCardless' reason on the invoice timeline. The invoice stays unpaid. e-maktab does not try again on its own. | Retry it from the GoCardless dashboard (up to 3 times). e-maktab follows the retry and marks the invoice paid when it succeeds. Or take payment another way. |
| A collected payment is charged back or bounces later | Marks the payment failed and puts the invoice back to owing. | Settle it with the parent. |
| A parent's mandate is cancelled or expires | Unlinks the mandate and emails the parent. | Ask the parent to set up Direct Debit again. |
| You refund a payment in GoCardless | Records a credit note and marks the payment and invoice as refunded. | Nothing. Refunds are made in GoCardless. |
| A payment arrives on an invoice that was voided | Keeps the money on that invoice and alerts you. | Re-issue the invoice, move the money, or refund it. |
Messages you might see
| Message | What to do |
|---|---|
| "The GoCardless access token is invalid or could not be verified." | Check you copied the whole token, that it has read-write access, and that it's a live token. |
| "Stripe is currently your payment integration." | Deactivate Stripe under Integrations → Stripe, then connect GoCardless. |
| "GoCardless is not available for your country." | GoCardless only works for schools charging in GBP, EUR or AUD. |
| "… has a GoCardless subscription" | Tick Cancel in GoCardless when linking for that customer, or leave them unlinked. |
| "… customer is already linked to another parent" | That GoCardless customer is already linked. Check which parent it belongs to. |
Disconnecting GoCardless
On Integrations → GoCardless, click Deactivate.
You can't deactivate while Direct Debit payments are still being collected. The button then takes you to the list of those payments instead. Wait until they have been collected, or have failed, then try again.
Deactivating stops new collections in e-maktab. It doesn't cancel mandates in GoCardless.
Need help? Contact e-maktab support with your school's name and what you were doing when the problem happened.
Comments
0 comments
Please sign in to leave a comment.