Gateways
Connect SMS and payment providers to your school.
Gateways (Admin → Gateways) connect your school to an SMS provider and one or more payment providers. This is how SMS messages and online payments actually go out.
Administrator only
The Gateways screen is administrator-only. It also respects the SMS and payments feature flags — if the super administrator has disabled one of those features, the corresponding gateway section shows a “feature not enabled” message.
How gateways work (in one paragraph)
You paste the URL of a gateway adapter. ApexityEdu calls that URL to discover the gateway’s name and which parameters it needs (e.g. an API key, a sender ID, a store ID). You then fill in the values, which are stored encrypted. That’s all you need to do — no code.
Connecting an SMS gateway
- Open Gateways.
- In the SMS section, paste the gateway URL.
- Click Fetch params — ApexityEdu discovers the fields (e.g.
API Key,Sender ID). - Fill in the values.
- Save.
Connecting a payment gateway
- Open Gateways → Payments.
- Paste the gateway URL and Fetch params.
- Fill in the values (e.g.
Store ID,Secret). - Save.
Multiple payment gateways
A school can run multiple active payment gateways at once. Each configured payment gateway can be toggled active/inactive independently. At checkout:
- One active → students pay with it directly.
- Several active → students see a “Pay with…” picker.
- None active → students see “pay at the school office”.
(Only one SMS gateway is supported at a time — one SMS provider per school is enough.)
Testing a gateway
Provider sandbox validation
ApexityEdu does not ship a fake payment gateway or synthetic payment backend. For end-to-end validation, configure the provider’s own sandbox endpoint and sandbox credentials in a non-production school, then exercise initiation, checkout, webhook, server-side verification, and reconciliation there. Never use live credentials for test transactions.
If a payment remains pending, check the configured gateway URL and the server’s last provider error before retrying.
The Test button
Each gateway has a Test button:
- For SMS, enter a number; ApexityEdu sends a test message.
- For payment, ApexityEdu initiates a 1-unit provider transaction. Use sandbox credentials; completing checkout with live credentials may charge real money.
The result is shown as a toast, and the gateway records when it was last tested and whether the test succeeded. The test uses the configured provider path; it does not replace full sandbox verification or production acceptance.
Gateway display names
Payment and SMS gateway display names are editable in the Gateways screen, so you can label them clearly for yourself and your students (e.g. “bKash — main” vs “bKash — backup”).
Troubleshooting
- Fetch params fails — check the URL is correct and reachable.
- Test fails — check the credentials you entered (wrong API key/secret is the usual cause).
- No “Pay now” for students — no active payment gateway, or the payments feature is disabled for the school.
Get the gateway URL
Your gateway provider (or your super administrator/developer) supplies the gateway URL. It is specific to the SMS/payment service you use.