Payment Receipt Generation
Automate payment receipts for every transaction. Generate tax-compliant PDFs with customer details, line items, and payment info — triggered by your payment processor webhooks.
Generate a receipt in seconds
Pass transaction data from your payment processor and get a professional receipt PDF back instantly.
import Rendoc from "rendoc";
const rendoc = new Rendoc("your_api_key");
const pdf = await rendoc.documents.generate({
template_id: "tpl_receipt_001",
data: {
transaction_id: "TXN-8847291",
date: "2026-03-25T14:32:00Z",
customer: {
name: "Jane Smith",
email: "jane@example.com",
},
payment_method: "Visa ending in 4242",
items: [
{ name: "Pro Plan (Monthly)", amount: 49.00 },
],
subtotal: 49.00,
tax: 4.90,
total: 53.90,
currency: "USD",
},
});curl -X POST https://rendoc.dev/api/v1/documents/generate \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"template_id": "tpl_receipt_001",
"data": {
"transaction_id": "TXN-8847291",
"customer": { "name": "Jane Smith", "email": "jane@example.com" },
"payment_method": "Visa ending in 4242",
"items": [{ "name": "Pro Plan (Monthly)", "amount": 49.00 }],
"total": 53.90,
"currency": "USD"
}
}'Why developers choose rendoc for receipts
Instant delivery
Generate and email receipts in real time after each payment. No delays, no manual work.
Tax-compliant formatting
Include tax breakdowns, VAT numbers, and jurisdiction-specific fields your accountant needs.
Subscription-ready
Handle recurring payments with billing period, plan name, and proration details.
Refund receipts
Generate credit notes and refund receipts with the same template system. Just pass different data.
Webhook integration
Trigger receipt generation from Stripe webhooks, PayPal IPNs, or any payment processor callback.
Audit trail
Every generated receipt is stored with metadata. Retrieve by transaction ID anytime.
Automate your receipt workflow
100 documents per month free. Connect to Stripe, PayPal, or any payment processor via webhooks.