Resource Directory Index
Select your target asset collection below to start decryption.
Cloudflare R2 for Digital Product Storage and Delivery: Every Detail You Need for a Bulletproof Stack — No Stripe Required

Cloudflare R2 for Digital Product Storage and Delivery: Every Detail You Need for a Bulletproof Stack — No Stripe Required

Introduction

I started selling a Notion template in April 2023. The first month I made $2,147, but Gumroad held $1,020 for 21 days because of a billing-address mismatch. That freeze hit when I was already in Tbilisi with a $300 SIM and no local IBAN. The incident revealed a truth: every platform that gives you a storefront also owns your cash flow pipeline. R2 flips the model—you own the storage, you control the cash. The only thing you need next is a checkout that settles in crypto or stablecoins so you can pull the money straight to your Revolut card or cold wallet without waiting on ACH or SWIFT.

Storage: R2 as the single source of truth

R2 is Cloudflares S3-compatible object storage. It charges $0.015 GB/month, the same as S3 Standard, but the moment you download the first byte you owe $0, whereas S3 charges $0.09 GB after the first GB. I store 2.4 GB of PDFs, ZIPs, and videos. Last month my bill was $0.036. The same files in S3 would have cost $0.216 plus $0.30 egress. Egress kills indie businesses the moment a YouTube tutorial goes mildly viral and 10,000 strangers hit your paywall.

Set up the bucket in the Cloudflare dashboard—name it something memorable—then create an R2 API token restricted to GetObject and PutObject. Drop that token in an environment variable. A simple Node script uploads new products in 200 ms. No bucket policies that break after an update: R2s edge cache invalidates in under a second, so the file your customer sees two minutes after upload is the file you just pushed.

Checkout: self-hosted crypto and stablecoin flows

I refuse to touch Stripe Connect because their onboarding rejects people in Venezuela, Nigeria, and Iran—markets that regularly buy my $49 course. Instead I pipe pricing to CoinGate, a processor that settles in USDT on Tron, base-layer USD on Lightning, or plain old credit cards. CoinGate transfers funds to my personal Tron address at 0.5 %—cheaper than any EU payment facilitator. For customers who want to pay locally, I embed a QR code that opens Strike in the Philippines or Pix in Brazil.

The checkout page is a Next.js static site on Vercel. When a purchase completes, a webhook hits my API running on Railway, which generates a pre-signed URL on R2 lasting seven days. I email the URL to the buyer. The link respects geo-blocking—Cloudflare Workers lets me serve different files based on Cloudflares IP database, which is enough to keep me legal while avoiding regional licensing.

Delivery: edge caching and file protection

For low-value products like fonts or icon packs, I use a public R2 bucket. For anything priced above $20, I flip the bucket to private. Pre-signed URLs are one line of code:

``` const url = await r2.getSignedUrl(bucket, key, { expires: 604800 }); ```

That URL lands in the customers inbox, not on a forum where pirates scrape it.

Cloudflares cache-key respects query parameters, so each unique buyer gets a unique URL without extra work. The cache warms globally in 32 ms. Ive had buyers in Jakarta and Buenos Aires download a 300 MB course zip in under 12 seconds.

Cost breakdown: what I actually pay

- R2 storage: $0.036/month - R2 API calls: $0.00001 * 1,200 requests = $0.012 - Cloudflare Workers: 10 million requests free, then $0.50 per million—last month $0.15 - CoinGate processing: 0.5 % of $8,420 = $42.10 - Vercel static hosting: $20 for two sites under the free band - Railway compute: $5 for the webhook endpoint Total: $67.29 for 120 transactions, or 0.56 % of revenue.

Gumroad last month took 10 % plus platform fees and withheld $230 for three days. The real savings arent the 4.5 % difference—its the speed at which I can move cash from Vietnam to Mexico without begging a bank clerk in a tie.

Pitfalls that cost me sleep

First,

⚡ Access Secure Mirror Link