Skip to main content

Articles

All articles

How to Test a Payment Gateway Before Enabling Online Rent Collection

A step-by-step rehearsal plan for Saudi property teams: validate gateway credentials, payment links, webhooks, ZATCA invoices and edge cases before the first real riyal moves.

How to Test a Payment Gateway Before Enabling Online Rent Collection

Online rent collection only feels effortless once it has been tested. Before you switch on live payments for a whole portfolio, run your gateway through a structured rehearsal: credentials, payment links, webhooks, invoicing, and the edge cases that quietly turn automation back into manual work.

A focused test session takes an afternoon. It saves you a month-end of chasing mismatched payments.

Why a test run beats a launch-day surprise

  • A tenant who thinks they have paid but hasn't leaves a rent cycle open and reminders firing at someone who already transferred.
  • A payment that lands without a matching invoice creates a compliance gap your finance lead has to rebuild by hand.
  • A gateway method that fails on Apple Pay but works on card stays invisible until a tenant tries it on a Friday night.

Test mode exists so you find these problems before your tenants do.

Step 1 — Start with a licensed gateway and test credentials

Register a merchant account with a gateway licensed by the central monetary authority in your country — SAMA in Saudi Arabia, with equivalents across the GCC. Ask for sandbox (test) credentials, not live keys.

Confirm two things before you build anything: transaction fees, which you negotiate directly with your gateway, and the settlement destination, which should be your own merchant account. In Maktabi you connect your own licensed gateway account using your API keys; Maktabi does not hold funds or take a platform cut, so the money path stays between your agency and your bank.

Step 2 — Connect the gateway in test mode

In your Maktabi profile, enter your API keys (secret and publishable) and set the connection to test mode. Then choose which local payment methods to offer tenants.

Available methods depend on your country and your gateway account configuration — MADA and STC Pay in Saudi Arabia, KNET, Benefit and OmanNet elsewhere in the region, plus cards, Apple Pay and Google Pay where supported. Maktabi only offers the methods approved for your country, so this step is about aligning the gateway's test configuration with what you plan to sell.

Step 3 — Create a realistic test payment link

Generate a payment link for a specific tenant, landlord, or external recipient. Enter an amount, a description and an optional due date, and the system produces a secure payment URL.

Use a realistic scenario from your own portfolio: a real unit, a real rent amount, a real due date. A tiny test amount against a dummy lease tells you the plumbing works. A full-size test tells you whether the invoice, the VAT line and the landlord statement come out right.

Step 4 — Pay like a tenant, on a phone

Open the link on mobile. Checkout is hosted, with no app to install and no registration required, so test it the way a tenant will experience it: small screen, mobile data, in a hurry.

Run a transaction for every method you intend to offer, using your gateway's published test credentials. Record what you tested and what passed — "we tested payments" is not a result you can audit later.

Step 5 — Confirm the webhook closes the loop

This is the step teams skip, and it matters most. When a payment completes, your licensed gateway sends a webhook notification to Maktabi. The system verifies the transaction, marks the rent cycle as paid and pauses all pending reminders instantly.

Check all three: the webhook arrived, the rent cycle flipped to paid, and the pre-due, due-date and overdue reminders stopped. If a payment shows as successful on the gateway dashboard but the rent cycle stays open, you have a webhook problem. Fix it before go-live, not after your first tenant pays.

Step 6 — Verify the invoice and the accounting sync

A confirmed payment should produce a ZATCA Phase 2 compliant invoice automatically — VAT breakdown, QR code and Arabic customer name — synced to Zoho Books with no manual entry.

Test against your configured tax mode: VAT-registered at 15%, non-VAT, zero-rated or exempt. Confirm the tenant actually receives the invoice, and check the invoice number sequence. Duplicate or broken numbering is far easier to fix in test mode than during an audit.

Step 7 — Deliberately test what can go wrong

A test that only covers the happy path is not a test. Work through these:

  • Declined payment: Does the tenant see a clear message, and does the rent cycle stay open?
  • Abandoned checkout: Does the link remain valid, and does the reminder schedule behave as expected?
  • Duplicate submission: The tenant taps pay twice. Is the second payment caught rather than double-counted?
  • Bank transfer receipts: Send a screenshot of a transfer receipt. Maktabi's receipt analysis extracts the amount, date and reference and matches it to the open rent cycle — confirm it lands on the right one and your team gets the result.
  • Unclear tenant replies: Inbound WhatsApp messages are classified as payment confirmation, payment promise, extension request, dispute or bank details request. Confirm your team sees the classification and knows who acts on each type.
  • Refunds and disputes: Ask your gateway how these are handled and write the process down before you need it.

Step 8 — Check who can do what

Before launch, map the permissions: who creates payment links, who works the collection inbox, who reviews arrears and on-time collection reports, and what landlords can see in their own portal. Access that everyone has is access nobody owns.

Step 9 — Switch to live in a controlled way

When every test passes, switch the gateway from test to live mode. Run one small real transaction — ideally with a willing tenant or a staff member — and follow it end to end: payment confirmed, rent cycle updated, invoice issued, Zoho Books synced. Then onboard the rest of the portfolio in waves, one property group at a time.

A reusable test checklist

Area What to confirm Pass criteria
Credentials Test keys in place, gateway set to test mode No live keys used during testing
Payment methods Every method you plan to offer One successful test payment per method
Webhook Notification received and verified Rent cycle marked paid, reminders paused
Invoicing ZATCA fields, VAT, QR code, Arabic name Correct invoice received by the tenant
Accounting Sync to Zoho Books No manual entry required
Edge cases Declines, duplicates, receipt matching Each case behaves as documented
Access Roles and permissions Every action has a named owner

Mistakes that create post-launch cleanup

  • Testing with live keys, or forgetting to switch to live mode afterwards.
  • Testing one payment method and assuming the rest behave the same way.
  • Treating webhook failures as minor. They turn automated collection back into manual reconciliation.
  • Leaving invoices unchecked until the first VAT period closes.
  • Launching the entire portfolio at once instead of starting with a single property group.

The payoff

A tested gateway is the difference between collections that run themselves and a finance team that rebuilds the paper trail every month. Once reminders, payment confirmation, invoicing and accounting sync are validated end to end, online rent collection delivers what it promises: faster collections, fewer manual follow-ups, and clean compliance from the very first payment.