Skip to Content
HomeLink Hub
Tenant Experience

Paying for a Property

The rent, purchase and stay payment screen, its two payment modes (escrow and direct Paystack), the Paystack webview and verification screens, and the prototype bank-transfer screens.

Once a lister has accepted a tenant's payment request, the tenant pays from one summary screen, /property/payment. A platform setting decides what the "Pay Now" button does: in ESCROW mode it creates an escrow transaction and opens the escrow provider's payment page; in DIRECT mode it opens Paystack inside the app.

Where it lives

ScreenRouteFileWho sees it
Rent / Purchase / Stay Payment/property/paymentapp/property/payment.tsxTenants
Secure Payment (Paystack webview)/property/booking-paymentapp/property/booking-payment.tsxTenants, DIRECT mode only
Payment result/property/booking-verifyapp/property/booking-verify.tsxTenants, DIRECT mode only
Payment Method/property/payment-methodapp/property/payment-method.tsxNobody (prototype, not linked)
Make a Transfer/property/bank-transferapp/property/bank-transfer.tsxNobody (prototype, only reachable from Payment Method)

Data comes from propertyApi (services/property/property-thunk.ts), paymentApi (services/payment/payment-thunk.ts) and appSettingsApi (services/settings/app-settings-api.ts). All screens sit in the property stack (app/property/_layout.tsx).

Before you start

  • Signed in as a tenant.
  • The intended entry is the "Make Payment" button on the property detail screen, which appears after the lister confirms the tenant's payment request. See Property details, including its note that this button may not currently appear.
  • For a short-let, the host must have confirmed the stay request. See Short-let booking.
  • In ESCROW mode the backend refuses payment unless the property's legal status is legally_verified.
  • No device permissions are needed.

Flow

Payment summary

  1. The screen opens with a propertyId param and fires three requests:
    • GET /api/v1/property/:id for the listing
    • GET /api/v1/booking/property/:propertyId/payment-request for the tenant's latest payment request on it
    • GET /api/v1/settings for paymentMode and platformPropertyFeePercent
  2. The header title depends on the listing:
ListingTitleBreakdown line
Type SHORTLET"Stay Payment""Stay (N nights)" or "Stay Total"
Has a sale price"Purchase Payment""Sale Price"
Otherwise"Rent Payment""Annual Rent"
  1. A notice explains the mode. ESCROW: "Your payment is held securely in escrow until you confirm receipt and completion." DIRECT: "Your payment is processed securely via Paystack with end-to-end encryption. Funds are protected throughout."
  2. "Property Details" shows the first photo, location (community and state, or "NIGERIA"), title, and bed and bath counts when present.
  3. "Payment Breakdown" shows:
    • the base amount: for a short-let, totalPrice from the confirmed payment request; otherwise the rent price, or the sale price when there is no rent price
    • "Platform Fee (N%)", the base amount times platformPropertyFeePercent (default 1), rounded
    • "Total Amount", the sum
  4. "AMOUNT TO PAY" repeats the total with "Held securely in escrow" or "Processed securely via Paystack".
  5. The user taps "Pay Now". Two guards run first: missing property or user shows "Error" / "Required data missing. Please try again."; a zero amount shows "Error" / "Price not available for this property.".

Settings fallbacks

If the settings request has not returned yet, the screen assumes ESCROW mode and a 1 percent fee. The backend recalculates the fee from its own settings in both modes, so the amount charged is the server's figure, not the one shown.

Pay Now in ESCROW mode

  1. The app fires POST /api/v1/escrow/initialize with an escrowData object. The fields the app sets:
{
  "escrowData": {
    "propertyId": "...",
    "transactionType": "rent or purchase",
    "escrow_type": "onetime",
    "initiator_role": "seller",
    "title": "Rent – PROPERTY TITLE",
    "currency": "NGN",
    "inspection_period": 7,
    "delivery_date": "today plus 30 days, YYYY-MM-DD",
    "who_pay_fees": "buyer",
    "amount": "base amount as a number",
    "buyer_details": { "name": "...", "email": "..." },
    "seller_details": { "name": "...", "email": "..." },
    "payout": { "payout_type": "bank" }
  }
}

amount is the base amount without the fee; the backend adds the platform fee. Seller details come from the listing's landlord, or its agent when there is no landlord. A short-let is sent with transactionType set to rent and a title starting "Stay". 2. The response can carry payment_url and escrowTransactionId. 3. If there is a payment_url, the app opens it in the device browser with Linking.openURL. If the browser cannot be opened: "Error" / "Could not open the payment page.". 4. If there is an escrowTransactionId, the app also pushes /property/escrow/[id], so the escrow status screen is waiting when the user returns from the browser. See Escrow and receipts. 5. If neither is returned: "Payment Requested" / "Payment request sent. Awaiting agent confirmation.". 6. Any failure shows "Error" with the server message or "Failed to initialize payment.". A listing that has not passed legal review returns "Property is not legally verified. Payment is unavailable until legal review is completed.".

Pay Now in DIRECT mode

  1. The app fires POST /api/v1/transaction/booking/initialize with amount (base amount), propertyId and a callbackUrl that ends in property/booking-verify?propertyId=....
  2. The response carries payment_url (Paystack's authorization URL) and reference. With a URL, the app pushes /property/booking-payment with params authorizationUrl, propertyId and reference. Without one: "Error" / "Payment URL not received. Please try again.".
  3. "Secure Payment" loads the Paystack page in a webview. While it loads, an overlay reads "Loading payment page…".
  4. The user pays inside the webview. The screen watches every navigation; when the URL contains booking-verify, trxref= or reference=, or starts with the callback scheme, it replaces itself with /property/booking-verify, passing propertyId and the reference (taken from the params, or parsed from the URL).
  5. /property/booking-verify fires GET /api/v1/transaction/booking/verify/:reference and shows "Confirming Payment…" / "Please wait while we verify your property payment.".
  6. Verified (success true and data.status equal to success): "Payment Confirmed!" with "Your booking payment has been received. The agent or landlord will be in contact to confirm the next steps." and a receipt card: "Type" Property Booking, "Amount Paid" (the amount divided by 100, in naira), "Reference", "Paid On", "Status" Successful. Buttons: "Back to Home" (replaces with /tenant) and "View Property" (replaces with /property/[id]).
  7. Not verified: "Payment Not Verified" with "We could not confirm your payment. If money was deducted, it will be refunded automatically. Reference: ..." and buttons "Try Again" (refetch) and "Back to Property".

Direct payments cannot be verified as written

The backend has GET /api/v1/transaction/inspection/verify/:reference but no /transaction/booking/verify/:reference route. The request in step 5 therefore returns 404 and the screen shows "Payment Not Verified" even when Paystack took the money. The Paystack webhook (POST /api/v1/transaction/webhook/paystack) may still record the payment server-side. Confirm before enabling DIRECT mode.

Prototype screens: Payment Method and Make a Transfer

These two screens are static mock-ups. No screen in the app navigates to /property/payment-method, and they call no API.

  1. "Payment Method" offers three radio cards: "Bank Transfer" (subtitle "Nigeria Banks via FCMB", tagged "Recommended", selected by default), "Debit / Credit Card" and "Payment Merchants". "TOTAL AMOUNT DUE" is hardcoded to ₦550,000.00.
  2. The bottom button reads "Transfer ₦550,000" for bank transfer or "Pay ₦550,000" otherwise. Whatever is selected, it pushes /property/bank-transfer.
  3. "Make a Transfer" shows a hardcoded bank name, amount and account number with copy icons that have no handler, and a "Complete transfer in" timer fixed at "123.00".
  4. "I have paid" opens a modal "Payment Sent!" naming a hardcoded amount and property. "Okay" pushes /property/escrow-status, another static screen described in Escrow and receipts.

Do not test payments through these screens

Nothing on Payment Method or Make a Transfer is connected to a real listing, amount or account. They should be treated as design references only.

States and edge cases

  • Loading. A centred spinner while the listing loads. There is no skeleton.
  • No propertyId, or the listing fails to load. "Property Not Found" with a "Go Back" button. This is what the "Make Payment" item in the chat thread menu produces, because it pushes /property/payment with no params.
  • Opened with inspection params. The property detail "Pay Now" button for an unpaid inspection passes type and inspectionId, but this screen ignores both and charges the full property price. Inspection fees are paid from the Inspections tab; see Booking an inspection.
  • Short-let without a confirmed request. totalPrice is missing, the amount is 0, and "Pay Now" shows "Price not available for this property.".
  • Double tap. "Pay Now" is disabled and dimmed while a request is in flight.
  • Webview fails to load. "Failed to Load" / "Could not load the Paystack payment page. Check your connection and try again." with "Retry", which reloads the webview.
  • No payment URL passed to the webview screen. "Payment Link Unavailable" / "Could not load the payment page. Please go back and try again." with "Go Back".
  • Cancel in the webview. The back arrow asks "Cancel Payment" / "Are you sure you want to cancel this payment?" with "Continue Payment" and "Cancel". "Cancel" returns to the summary; no request is sent to cancel the Paystack transaction.
  • Escrow browser closed without paying. The app is already on the escrow status screen showing pending, with "Fund Escrow Now" to reopen the payment page.
  • Session expired. A 401 triggers one silent token refresh; if that fails the app returns to sign in.

What happens next

  • ESCROW: the backend creates an escrow transaction in pending status and a booking linked to it, sets the escrow amount to base plus platform fee, and for a purchase with a listing agent records the agent's commission to be paid out of the seller's proceeds on release.
  • When the escrow is funded and later completed, the property is marked rented or sold (short-lets are excluded). That part of the journey is in Escrow and receipts.
  • Escrow transactions appear under Profile, "Payment History" and "My Properties". See Profile and settings.

On this page