receipt-printer

Renders an animated order-confirmation receipt component in HTML/CSS and React after payment confirmation.

Updated Jun 9, 2026
One-click install
npx skills add https://github.com/timikalo7/Execute --skill receipt-printer-timikalo7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: receipt-printer
Source: https://github.com/timikalo7/Execute/tree/main/.claude/skills/receipt-printer
Command: npx skills add https://github.com/timikalo7/Execute --skill receipt-printer-timikalo7

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Checkout confirmation pages often show a bare success message with no durable record of the purchase. This Skill provides a receipt component that animates out of the confirmation card once a payment is confirmed, while enforcing the rules that keep a receipt honest: processor-driven status, semantic text, masked card digits, and a permanent receipt URL. ## Core Features & Use Cases - Animated receipt reveal: A paper-style receipt with line items, subtotal, tax, total paid, order id, masked card, date, barcode, and torn bottom edge emerges from the confirmation card using pure CSS transitions. - Two implementations: A self-contained reference/demo.html runnable with no build step, and a ReceiptPrinter.tsx React component with plain CSS that drops into any project. - Safety and accessibility rules: Status must come from the payment processor (never a timer), the receipt is selectable semantic text, only the last four card digits are shown, reduced-motion and print styles are built in, and a permanent receiptHref link is required. - Use Case: On an e-commerce or subscription checkout, after Stripe confirms the charge, render the receipt with the order's line items and a link to the permanent receipt page in order history. ## Quick Start Open reference/demo.html with a local static server such as python3 -m http.server to see the receipt animation, then adapt ReceiptPrinter.tsx into your checkout confirmation flow.

Frequently Asked Questions about receipt-printer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an animated order confirmation receipt in React?

Use the ReceiptPrinter.tsx component, passing status, line items, total, order id, and a receiptHref. It measures the paper element with a ResizeObserver and animates a slot open with CSS transitions when status becomes complete.

How do I create a torn paper edge effect in CSS?

Use two mask layers: a linear-gradient covering the body plus a repeating conic-gradient sawtooth strip with its own height along the bottom. A single repeating-conic-gradient renders a flat edge, so the sawtooth needs its own strip.

Can I trigger the receipt animation with a setTimeout after checkout?

No. The status must come from the payment processor's confirmation, never a timer. Printing a receipt for a charge that has not settled is treated as a dark pattern; the demo only uses setTimeout because it has no backend.

Does the receipt component support reduced motion and printing?

Yes. Under prefers-reduced-motion all transitions are disabled so the receipt simply appears, and print styles hide the dark card and print only the paper receipt. The receipt is semantic text, so selection and screen readers work.

When should I not show a receipt animation?

Skip it for free signups, trials, or anything with no charge, and for failed or pending payments where you should show the failure plainly. Refunds need their own distinct treatment so users are not confused about being charged again.