Skip to main content

Redirect Flow

Before starting a transaction, the merchant must configure the callback URL in their profile. After the customer completes payment, CellPay UPG redirects the customer to the page routed through that callback URL.

Flow Diagram​

┌────────────────┐ ┌──────────────────┐ ┌─────────────────────┐
│ Customer / │ │ Your Backend │ │ CellPay UPG │
│ Browser │ │ Server │ │ + Provider │
└───────┬────────┘ └────────┬─────────┘ └──────────┬──────────┘
│ │ │
│ │ 1. Configure callback URL │
│ │ in merchant profile │
│ │────────────────────────────►
│ │ │
│ 2. Opens checkout page │ │
│─────────────────────────► │
│ │ │
│ │ 3. POST /upg/checkout │
│ │ with callback URL │
│ │────────────────────────────►
│ │ │
│ 4. Checkout page │ │
│ opens for customer │◄────────────────────────────
│ │ │
│ 5. Completes payment │ │
│─────────────────────────────────────────────────────►
│ │ │
│ │ │ 6. Transaction completed
│ │ │
│ 7. Redirects customer │ │
│ to callback URL │◄────────────────────────────
│ │ │