← knowledge.oriz.in

Payment architecture — direct platform links via CF Worker click-tracker

decision decisionarchitecturepaymentsrazorpaypaddlegumroadsubstackcloudflare-workersno-card-on-file

Payment architecture — direct platform links via CF Worker click-tracker

Decision

Checkout flows in the family use direct platform links: a button on our site redirects the user to the payment provider's hosted checkout. Provider hosts the checkout, we host the button. A tiny Cloudflare Worker sits in the middle to log the click anonymously before the 302.

Definitions

Flow

button click
  ? CF Worker  /track-checkout?dest=razorpay&plan=pro&ref=blog
  ? log to CF Analytics Engine  (anonymous, no PII)
  ? 302  https://rzp.io/l/oriz-pro

~1 Worker invocation per checkout click. With realistic checkout volume the burn is ~5K/day at peak — 20x headroom on the 100K/day free envelope (cf-worker-quota-mitigation.md).

Per-region routing

Region / use case Provider Why
India (INR) Razorpay Payment Page UPI + cards + netbanking, local KYC
International (USD/EUR/GBP/ROW) Paddle Merchant-of-Record, handles VAT/sales-tax globally
Digital downloads (PDFs, zips) Gumroad Hosts the file delivery + license keys
Newsletter subscriptions Substack Subscription billing built-in
Android in-app purchases Play Billing Required by Play Store policy

Why this shape

Cross-refs