← All work

Authorise now, charge later · Oct 2024 – Feb 2025, redesigned Jan 2026

Authorize now, pay when the policy is issued

Buying insurance has a gap in the middle: you apply and pay, but the policy is issued later. A one-time mandate fits that gap. The premium is blocked in the customer’s account when they apply, and only debited if the policy is issued. I built this flow into our orchestration checkout, and the way I did it changed how the whole checkout handles different kinds of payment.

Role
Frontend engineer
When
Oct 2024 – Feb 2025, redesigned Jan 2026
Where
PayGlocal
Stack
ReactRedux ToolkitUPIMandates

The situation

Our orchestration checkout already handled one-off payments and standing instructions for recurring premiums. A one-time mandate looks almost the same on screen but means something different: the customer authorizes, nothing is taken yet. Every button, note, drawer and status page had to say the right thing. The old code decided wording with scattered checks of individual flags, and adding a third kind of payment that way would have multiplied them.

What I built

  • A single “transaction flow” value, one-time mandate, standing instruction or ordinary payment, stored once and set from the session, OTP, status and retry responses. It replaced the scattered consent-type checks.
  • Screens that read it: “Authorize” instead of “Pay”, “Retry authorization” on retry, separate cancel drawers for cancelling an authorization or a mandate, and the right loaders.
  • A note on the amount explaining that it’s blocked now and debited only when the policy is issued, plus a tag and tooltip naming the insurance block-amount scheme.
  • One-time-mandate status and retry headers, with titles and descriptions supplied by the server so they can change without a release.
  • UPI details: only apps that support mandates are listed, the QR text names the supported apps, and “Authorize” wording for UPI intent.
  • Standing-instruction consent across cards, UPI and bank mandates: a consent checkbox that resets on every card change, methods that don’t support recurring debits hidden, and a clearer explanation of each debit and the maximum amount.
  • In 2026, redesigned one-time-mandate status screens and drawers as part of the checkout’s refresh.
Try it

One checkout, three kinds of payment

transactionFlow = "OTM"

Every screen reads this one value. Buttons, notes, drawers, status and retry pages pick their words from it, instead of each one checking its own conditions.

How the money moves

    Decisions

    One value instead of many checks

    Every screen asks one question, “which flow is this?”, and picks its words from the answer. A new kind of payment means a new value and some copy, not a hunt through every component.

    Say “authorize”, mean it

    Customers trust words on a payment page. If money isn’t taken yet, the button doesn’t say “Pay”, and a short note says exactly when it will be.

    Let the server own status wording

    Status titles and descriptions for these flows come from the server, so product and legal wording can change without shipping the checkout again.

    Consent resets when the facts change

    Consent to recurring debits is tied to a specific card or method. Changing the card clears it, so consent is never carried over to something the customer didn’t agree to.

    Outcome

    WhatBeforeAfterDetail
    Kinds of payment the checkout handles23one value drives them all
    Commits20 + 28mandates + recurring consent
    Wording changes for status pagesrelease neededfrom the serverno deploy
    ↑↓ move↵ openesc close