Tap Payments · Scoping Expert Assignment
Souqna Payment Architecture & 6-Week Launch Plan
From Founder Discovery Call to Live KSA Split-Payment Execution (300 Home Chefs · SAR)
Prepared by: Abdullah Alqahtani
Market: Saudi Arabia (SAR)
Supply: ~300 Home Chefs & Caterers
Launch Target: 6 Weeks
1. First Conversation: Founder Discovery Checklist
Before quoting timelines or writing code, we align with Souqna's founder on five operational realities in a 30-minute scoping call:
1. Chef Legal Status (300 Chefs)
- How many chefs hold a Commercial Registration (CR) vs. a Saudi MHRSD Freelance Certificate vs. neither today?
- Do all chefs hold a Saudi bank IBAN matching their legal or freelance certificate name?
2. Cart & Commission Rules
- Is checkout strictly one chef + one category per cart (like Jahez / HungerStation), or multi-chef baskets?
- Who collects the delivery fee, and is the 15% / 20% commission inclusive of 15% ZATCA VAT?
3. Volumes, AOV & Payment Mix
- Expected AOV for daily meals (15%) vs. advance catering (20%)?
- Expected share of
mada/Apple Payvs.Credit Cardsvs.Tabby? (Directly impacts chef net payout.)
4. Refunds & Souqna Plus
- When an order is refunded after capture, who absorbs the non-refundable gateway fee (chef fault vs. platform fault)?
- What is Souqna Plus's monthly price, trial rule, and retry policy if a saved
madacard declines on renewal?
2. Restated Requirements & Architectural Corrections
| Founder Request | Verdict | Tap + KSA Solution |
|---|---|---|
| "Save card numbers on our side for Souqna Plus" | Hard No (PCI Trap) | Storing raw PANs triggers PCI-DSS Level 1 / SAQ-D audits and SAMA scrutiny — impossible in 6 weeks. Instead, use Tap Tokenization: pass save_card: true + 3DS on initial CIT checkout; store only cus_..., car_..., and payment_agreement.id; bill renewals via tok_... + customer_initiated: false (MIT). |
| "Chefs get their money the same day" | Reset to T+n | Tap locks payouts until sub-merchant KYC is approved, and Saudi scheme clearing settles on business days (mada ~T+1/T+3, Visa/MC ~T+2/T+5), not midnight T+0. Also, Souqna must not self-disburse from its own bank (unlicensed SAMA aggregator risk). Fix: Show instant "Confirmed Earnings" in the Chef App on CAPTURED webhook + automated Tap bank payouts. |
| "Some chefs are individuals with no CR" | Solved via Freelance Cert | Individual Saudi home chefs obtain the free government MHRSD Freelance Certificate (freelance.sa) via Absher in minutes + matching IBAN, and onboard via Tap Lead & Connect API (POST /v2/lead → POST /v2/connect). |
| "15% / 20% commission & Tap fees out of chef's share" | Native Split Math | Tap deducts MDR (+15% VAT) from the Master (Souqna) wallet while crediting destinations[0].amount net to the chef. We compute in integer halalas: chef_net = total − commission − tap_fee so Souqna's master remainder covers Tap's fee and nets exact 15% / 20%. Customer picks payment method upfront (src_mada vs. src_card) so exact MDR is known before creating the charge. |
| "mada, Apple Pay, cards and Tabby" | Single Tap API | All methods run in SAR via POST /v2/charges. Enable Apple Pay domain verification in Week 2; confirm whether src_tabby.installement supports destinations split directly in KSA (and restrict Tabby to catering orders ≥ 300 SAR due to ~6.5% BNPL MDR). |
3. Halala Split Math Proof (1 SAR = 100 halalas)
| Line Item (200.00 SAR Order) | Regular Dish (15%) · Paid via mada (1.75%) | Catering (20%) · Paid via Visa/MC (2.75% + 1 SAR) |
|---|---|---|
Customer Pays (amount) |
200.00 SAR (20,000 halalas) |
200.00 SAR (20,000 halalas) |
| Souqna Target Net Commission | 30.00 SAR (3,000 halalas · 15.00%) |
40.00 SAR (4,000 halalas · 20.00%) |
| Tap Fee + 15% Fee VAT (Absorbed by Chef) | 3.50 + 0.53 = 4.03 SAR (403 halalas) |
6.50 + 0.98 = 7.48 SAR (748 halalas) |
Chef Net (destinations[0].amount) |
165.97 SAR (16,597 halalas) |
152.52 SAR (15,252 halalas) |
| Souqna Master Wallet Reconciliation | Retains 34.03 − Tap takes 4.03 = 30.00 SAR |
Retains 47.48 − Tap takes 7.48 = 40.00 SAR |
4. End-to-End Architecture & Money Flow Diagram
Clear separation between Phase A (Chef Onboarding), Phase B (Live Split Order Checkout), and Phase C (Automated Bank Settlement):
5. Actionable 6-Week Launch Plan
Critical Path: Engineering takes ~2 weeks; KYC-approving 300 chefs takes 4–5 weeks. Chef onboarding starts Day 1 in three waves alongside development.
| Week | Milestone | Souqna Actions vs. Tap Integration Team Actions |
|---|---|---|
| Week 1 | Contract & Keys | Tap: Issue Marketplace + Merchant API keys; confirm Freelance Certificate KYC checklist, KSA T+n SLA, and Tabby split support.Souqna: Segment 300 chefs (Wave 1: CR holders; Wave 2: Freelance Certificate holders; Wave 3: need Absher Freelance Certificate). |
| Week 2 | Core Split + Wave 1 KYC | Souqna Eng: Build FastAPI split engine, POST /v2/charges, HMAC webhook, and Tap Connect onboarding.Souqna Ops + Tap: Send Tap Connect KYC links to first 100 chefs; submit Apple Pay domain verification. |
| Week 3 | Souqna Plus + Wave 2 KYC | Souqna Eng: Implement save_card: true CIT + payment_agreement MIT monthly billing & SMS retry link; ZATCA commission e-invoicing.Souqna Ops: Onboard next 120 chefs; assist remaining chefs with issuing their MHRSD Freelance Certificate. |
| Week 4 | Refunds, Ledger & Wave 3 | Souqna Eng: Build Chef App "Confirmed Earnings" ledger, POST /v2/refunds matrix, and finance reconciliation export.Tap Compliance: Clear Wave 3 & resolve document re-uploads. |
| Week 5 | UAT & Live Penny Tests | Joint: Full sandbox + live 5 SAR penny tests across mada, Apple Pay, Visa/MC, and MIT renewals through real Saudi IBAN settlement. Gate: ≥85% active chefs KYC-approved. |
| Week 6 | Phased KSA Go-Live | Joint: 48h soft launch (top 50 KYC-green chefs) → verify first live bank payout batch → ramp to 100% KSA traffic (unverified chefs auto-hidden until KYC webhook turns green). |
6. Key Assumptions Noted
- Cart Scope: MVP enforces one chef + one commission tier (15% or 20%) per checkout to keep splits, delivery, and partial refunds unambiguous.
- Illustrative KSA MDRs: Split preview uses
mada = 1.75%,Visa/MC = 2.75% + 1 SAR(+ 15% VAT on gateway fees); final rates plug in from Souqna's signed Tap schedule. - Sandbox Marketplace Fallback: Standard Tap sandbox keys return
1172 (Destination id is invalid)unless Marketplace keys are provisioned; our FastAPI server sends and logs the exactdestinationspayload first and automatically completes a live hostedcheckout.tap.companyfallback charge whenSTRICT_DESTINATIONS=false.