Skip to content

Payments

Source: pharmanet-web/src/pages/Payments/Payments.jsx

Tabs

Tab Component Description
Transactions TransactionList Payment records with search/filters
Payment Logs PaymentLogs Payment event log
Chapa Configuration ChapaConfig Chapa API keys

Service

Source: pharmanet-web/src/services/payments.js

Function Description
getTransactions({page, limit, search, status}) Payment records
getTransactionById(id) Single transaction
getPaymentLogs({page, limit}) Payment log
updateChapaSettings(settings) Save Chapa keys

Chapa Integration

Chapa is used for seller-initiated payments: - Featured product boosts - Subscription purchases

The chapteraService provides hosted checkout: - generateChapaHtmlForm(paymentData) — Auto-submit HTML form - openChapaPaymentInNewTab(paymentData) — Opens Chapa checkout - verifyPayment(txRef) — Validate payment completion