Preparing your design workspace

Loading the problem and your latest saved attempt…

Expand a US Digital Wallet to New Markets

Launch an existing US wallet in new markets with local rails, pinned currency quotes, regional policy, and safe uncertain-payment recovery.

Problem statement

An original-author Google L5 interview report says a design round asked how to extend a functional US Google Pay system globally. The report gives no payment flow, market set, rails, currency handling, regulatory rules, scale, or latency target.

The scenario below is an authored exercise, not a claim about Google Pay or any country.

For this exercise, an existing US digital wallet already accepts tokenized merchant purchases. Extend it in phases to two unnamed new markets. Market A supports local-currency domestic purchases through a local payment rail.

Market B supports those domestic purchases plus one approved US-to-B merchant checkout corridor: a US payer sees and authorizes a USD amount, while the B merchant receives a fixed B-currency settlement amount. Do not store raw card credentials or act as an FX trading venue.

A market and corridor capability configuration determines which payer, merchant, instrument, rail, currency pair, and data region combinations are eligible; an unsupported combination fails closed.

The checkout receives a time-limited quote with payer amount, merchant amount, fee, currency pair, exact rounding rule, and configuration version. A successful confirm pins the quote and its amounts for the entire in-flight payment, even if the quote expires afterward.

A request retried with the same idempotency identity must not create a second charge or silently reprice. External rail outcomes can be delayed, duplicated, reordered, or unknown after an upstream call.

Merchants and customers need an authoritative pending, succeeded, failed, or unresolved status; no uncertain payment may be charged again merely because a timeout looks like failure.

Design market onboarding, capability and policy evaluation, quote and payment APIs, amount representation, regional routing and data boundaries, rail adapters, durable state and reconciliation, rollout controls, and recovery.

For this exercise, market B requires payment-detail records to stay in its assigned region; a global control plane may retain only opaque IDs and aggregate health. Specific legal obligations, tax rules, KYC decisions, disputes, refunds, and the internals of the existing US wallet are outside this version.

What to build

  1. Expose a versioned market/corridor capability decision and reject unsupported payment combinations before money movement.
  2. Create a bounded quote, then idempotently confirm a payment with immutable payer and merchant amounts, currencies, fee, rounding, and policy version.
  3. Resolve domestic and cross-border rail outcomes without duplicate external effects and expose one authoritative merchant/customer status.
  4. Launch markets and rails gradually with region-appropriate data placement, per-rail health controls, and durable reconciliation of delayed outcomes.

At scale

  • For this exercise, plan for 8,000 checkout confirmations per second across markets, bursts of five times that rate, and 40,000 status reads per second; a launch may concentrate 60 percent of traffic in one market.
  • For this exercise, platform-owned quote and confirm acceptance finish within 500 milliseconds p95; upstream rail completion can take minutes. A status read finishes within 200 milliseconds p95 in the payment home region.
  • For this exercise, quotes expire after 60 seconds if not confirmed. A confirm accepted before expiry pins its quoted payer/merchant amounts and capability version; retrying the same intent cannot change them. Provider callbacks can be duplicated or delayed for 24 hours.
  • For this exercise, a single regional failure must not duplicate a charge or make an unknown upstream result look failed. Retain immutable financial and reconciliation evidence for seven years as an exercise retention target, not a claim about any jurisdiction.