Reza Nur

← back

E-wallet Payments Integration: Redirect and Webhook-Based Confirmation

Doitpay·

Overview

CompanyDoitpay (Payment Gateway)
ThemeShipping a reliable e-wallet checkout flow with strong status consistency
Checkout typeRedirect and jumpapp only
Confirmation modelProvider callback and merchant webhooks, without polling
RoleProduct Manager, leading delivery across Engineering, QA, Operations, and Compliance

Problem

E-wallet payments are asynchronous and user driven. A customer leaves the merchant checkout to authorize payment in a provider app, then the system must converge to a final status reliably.

The main risks are inconsistent status updates, delayed notifications, duplicate callbacks, and poor merchant experience when confirmation arrives late.

Goals

Constraints

What I Delivered

1. Standardized checkout flow for redirect

What the merchant gets:

Why it mattered: This created a consistent merchant integration pattern that can scale across e-wallet providers.

2. Simple, consistent state model

I enforced a small set of canonical states to reduce ambiguity and improve operability.

Transaction states:

Why it mattered:

3. Webhook based confirmation strategy

Provider callback path:

Merchant notification path:

Why it mattered: Polling can exhaust resources at scale. A webhook based approach reduces system load while still delivering reliable status convergence.

4. Webhook contract and merchant experience

Webhook events:

Merchant safety:

Why it mattered: Merchants can depend on a predictable contract.

5. Observability and evidence readiness

To support troubleshooting and audit evidence, I aligned on an evidence contract for each transition.

Identifiers captured on every transition:

Operational signals:

Operations dashboard
Operations dashboard

Results

What I would improve next

1. Stronger state transition evidence by design

2. Better merchant debugging experience

3. Automated reconciliation coverage

4. Webhook operations hardening