Logo

Prana Connect

Prana ConnectGuidesHospital Integration

Hospital Integration

Recommended architecture for integrating an HIS with Prana Connect (Wegagen Bank powered)

Reference Model

Recommended components:

  • HIS (billing + cashier module)
  • Prana Connect adapter/service (server-side)
  • Webhook receiver (can be the same service)
  • Finance/reconciliation tooling (reports + exports)

Data Model

Use a stable reference scheme that never changes after creation:

HOSP-INV-YYYY-NNNNNN

Suggested fields to store per payment:

FieldPurpose
referencePrimary reconciliation key
paymentIdPrana Connect identifier
statuspending/succeeded/failed/expired/reversed
amount / currencyAmount correctness and reporting
channelOperational support and analytics
createdAt / paidAtReporting and SLA tracking

UI/UX Patterns

  1. Generate invoice: Generate and persist reference in your HIS before initiating payment.
  2. Initiate payment: Create a payment intent and receive instructions (or a redirect URL).
  3. Show clear payer instructions: Display the exact steps to complete the payment, and keep the screen non-blocking.
  4. Confirm automatically: Update the invoice when a webhook arrives; avoid manual “refresh” as the default path.

Handling Edge Cases

  • Timeouts: Treat as unknown and poll payment status by reference until final state.
  • Duplicate clicks: Use idempotency keys to avoid duplicated intents.
  • Partial payments: Decide policy (reject, accept as credit, or split invoices) before go-live.

Environments

Keep sandbox and production separated:

  • Separate credentials
  • Separate webhook URLs
  • Separate monitoring/alerts

How is this guide?

Last updated on

On this page