Urgent.News

What's breaking now, across thousands of outlets.

Tech

Stripe webhook to branded invoice PDF: a Cloudflare Worker recipe that keeps the file on your side

A Stripe payment lands, and someone wants a PDF invoice that looks like your product: your logo, your brand color, your layout, saved where you keep records. Stripe already hosts its own invoice PDF ( invoice_pdf on the invoice). This recipe is for when you want your own template and your own copy. Status note: Slipmint is a side project in development. Free API keys go out by invite to waitlist…

A Stripe payment triggers an invoice PDF via a Cloudflare Worker. The Worker verifies the webhook signature using Stripe's SDK, maps the Stripe invoice onto a template with JSON data, and stores the generated PDF on a Cloudflare R2 bucket. The template requires fields such as company name, invoice number, issue date, and customer name, along with optional branding details and optional status badge.

The tax calculation is handled accurately to match Stripe's output, and any discrepancies result in an error. The handler checks for duplicate deliveries and uses waitUntil to ensure the response is processed before complex logic runs.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

What Enterprises Actually Need from a Managed Kubernetes Provider (Beyond 'It's Managed')

Every major cloud provider offers a managed Kubernetes service now - including IBM Cloud's IKS. The marketing language is nearly identical across all of them: fully managed, highly available…

  • Enterprises must scrutinize beyond marketing claims when choosing a managed Kubernetes provider.
  • "Fully managed" varies in responsibility transfer; crucial for compliance and staff-limited teams.
  • Hidden costs in engineering time can be $150,000-$180,000/year for mid-sized deployments.

Hacktoberfest 2026 is here!

It’s that time of the year when developers around the world come together to contribute, learn, and grow through open source.

pkg-topic-detective-noir-推理链的黑箱拆解-1786976029-1

The last time a retry loop burned through our API quota, it didn't look like a crime scene at first. It looked like a loop that had given up thinking: [14:03:12] sync start target=inventory…

  • Retry loop exhausted API quota by making four identical calls to inventory API
  • Client treated non-2xx responses as temporary, causing 4 requests per dead item
  • Classifier fix reduced wasteful retries and saved API quota

Website Automation: 7 Practical Workflows You Can Build With WordPress and n8n

Most websites are good at showing information. But what happens after someone submits a form, places an order, or publishes a new blog post? Someone usually has to do the next steps manually.

  • Website form data automatically saved to Google Sheets
  • New leads trigger notifications through email, Telegram, or Slack
  • Automated follow-ups prevent forgotten leads from contacting website

More from Thursday 1 October →