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
| Screen | Route | File | Who sees it |
|---|---|---|---|
| Rent / Purchase / Stay Payment | /property/payment | app/property/payment.tsx | Tenants |
| Secure Payment (Paystack webview) | /property/booking-payment | app/property/booking-payment.tsx | Tenants, DIRECT mode only |
| Payment result | /property/booking-verify | app/property/booking-verify.tsx | Tenants, DIRECT mode only |
| Payment Method | /property/payment-method | app/property/payment-method.tsx | Nobody (prototype, not linked) |
| Make a Transfer | /property/bank-transfer | app/property/bank-transfer.tsx | Nobody (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
ESCROWmode the backend refuses payment unless the property's legal status islegally_verified. - No device permissions are needed.
Flow
Payment summary
- The screen opens with a
propertyIdparam and fires three requests:GET /api/v1/property/:idfor the listingGET /api/v1/booking/property/:propertyId/payment-requestfor the tenant's latest payment request on itGET /api/v1/settingsforpaymentModeandplatformPropertyFeePercent
- The header title depends on the listing:
| Listing | Title | Breakdown line |
|---|---|---|
Type SHORTLET | "Stay Payment" | "Stay (N nights)" or "Stay Total" |
| Has a sale price | "Purchase Payment" | "Sale Price" |
| Otherwise | "Rent Payment" | "Annual Rent" |
- 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." - "Property Details" shows the first photo, location (community and state, or "NIGERIA"), title, and bed and bath counts when present.
- "Payment Breakdown" shows:
- the base amount: for a short-let,
totalPricefrom 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
- the base amount: for a short-let,
- "AMOUNT TO PAY" repeats the total with "Held securely in escrow" or "Processed securely via Paystack".
- 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
- The app fires
POST /api/v1/escrow/initializewith anescrowDataobject. 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
- The app fires
POST /api/v1/transaction/booking/initializewithamount(base amount),propertyIdand acallbackUrlthat ends inproperty/booking-verify?propertyId=.... - The response carries
payment_url(Paystack's authorization URL) andreference. With a URL, the app pushes/property/booking-paymentwith paramsauthorizationUrl,propertyIdandreference. Without one: "Error" / "Payment URL not received. Please try again.". - "Secure Payment" loads the Paystack page in a webview. While it loads, an overlay reads "Loading payment page…".
- The user pays inside the webview. The screen watches every navigation; when the URL contains
booking-verify,trxref=orreference=, or starts with the callback scheme, it replaces itself with/property/booking-verify, passingpropertyIdand the reference (taken from the params, or parsed from the URL). /property/booking-verifyfiresGET /api/v1/transaction/booking/verify/:referenceand shows "Confirming Payment…" / "Please wait while we verify your property payment.".- Verified (
successtrue anddata.statusequal tosuccess): "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]). - 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.
- "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.
- The bottom button reads "Transfer ₦550,000" for bank transfer or "Pay ₦550,000" otherwise. Whatever is selected, it pushes
/property/bank-transfer. - "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".
- "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/paymentwith no params. - Opened with inspection params. The property detail "Pay Now" button for an unpaid inspection passes
typeandinspectionId, 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.
totalPriceis 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 inpendingstatus 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
rentedorsold(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.
HomeLink Hub