Acrislip Order Receipts for WooCommerce

By Vant, Inc.

0+ active installationsVersion 1.3.6

PDF invoices and payment receipts for WooCommerce orders, with transaction and customer references and a QR code that proves each receipt is genuine.

Description

An invoice asks for money. A receipt proves it was paid. This plugin creates both: an invoice for an order, and a payment receipt once the order is paid, free, with nothing locked behind an upgrade.

What each document shows

  • Your logo, shop name, address and email (from your WooCommerce settings)
  • A sequential invoice number (e.g. INV-000123) and, on paid orders, a receipt number (e.g. RCPT-000123), plus the order number, dates and times in your site’s timezone
  • Customer name and email, the WooCommerce customer number (or Guest), and the payment provider’s customer reference when the gateway saved one
  • The transaction reference from the payment gateway
  • Billing address, shipping address and shipping method
  • Line items, subtotal, discount, shipping, fees, tax, order total, the amount due and, when paid, the amount paid
  • Payment details: payment method, channel, masked card, payment reference, currency, date paid and status
  • On receipts, a QR code and link anyone can use to confirm the receipt is genuine

Supported payment gateways

Built-in adapters read what these plugins store on the order. Nothing is fetched from the provider when a receipt is made.

  • Cray (Cray WooCommerce gateway): transaction and payment reference, channel, masked card, bank details for bank payments, fee and net amount, test or live.
  • Paystack (Paystack WooCommerce Payment Gateway): transaction reference. The channel is shown when a Paystack gateway is set to a single channel, such as Bank Transfer.
  • Flutterwave (Flutterwave WooCommerce): transaction reference (tx_ref) and Flutterwave reference.
  • Stripe (WooCommerce Stripe Payment Gateway): charge, payment intent and Checkout session, payment type (card, ACH, SEPA, Bacs, BECS, iDEAL and more), card brand and last 4 or bank last 4 from a saved payment method, Stripe fee and net amount.
  • Dodo Payments (Dodo Payments for WooCommerce): payment ID.
  • Any other gateway: WooCommerce transaction ID, payment method and payment date. Direct bank transfer (BACS) orders are shown as bank payments.

Fees and net amounts only ever appear on the admin compliance copy.
Highlights

  • Invoices and receipts. Invoices can be created for an order before it is paid. Receipts are only created once an order is actually paid. Cash on delivery orders get a receipt once completed.
  • Public verification. Each receipt carries a signed link and QR code. The verification page shows only the receipt number, date, amount and status, never customer details.
  • Compliance copy. Admins can download a second version that adds the gateway fee, the net amount settled and gateway record fields, for payment providers, auditors and disputes. It is never sent to customers.
  • Works with any gateway. Uses WooCommerce’s own transaction ID and payment date, and reads extra details that supported gateway plugins already save on the order.
  • Card and bank payments shown properly. Card payments show the brand and last 4 digits. Bank payments (bank transfer, pay with bank, USSD, direct debit) show the bank, the account’s last 4 digits, the account name and the transfer reference, when the gateway saved them.
  • Card numbers stay masked. If a gateway ever passes a full card number, only the last 4 digits are printed.
  • Customizable. Logo, legal business name, business address, phone and email (used on documents only; tax and shipping still use the WooCommerce store address), tax or registration number, accent color, three layouts (Classic, Modern, Minimal), A4 or US Letter, footer note, terms text and on/off switches for each section. Copy the template to your theme for full control.
  • Everywhere you need it. Download and email buttons for invoices and receipts on the order screen, buttons in the orders list and My Account, order actions to email either document, an optional receipt PDF on the Processing and Completed emails, and an optional invoice PDF on the Customer invoice email. Transaction and customer references also appear in those emails.
  • Private. PDFs are generated on your own server. The plugin makes no external requests and sends no data anywhere.
  • Supports High-Performance Order Storage (HPOS).

Built for your team, too

  • Payment box on every order: The provider, a Paid/Pending/Failed badge, and the transaction, customer and provider references, each with a copy button. It also shows the card or bank details, amount, paid time in your store’s timezone, test/live mode, and the gateway fee and net (visible to staff only). Buttons let you download or email the invoice or receipt, or copy the receipt share link.
  • Reference column and search: The orders list shows each payment reference, and you can search orders by reference. For gateways that only write references into order notes (older Cray versions, for example), the reference is read from the notes.
  • Transactions dashboard: KPI cards for money in today, over 7 days and over 30 days, plus paid, pending, failed and refunds. The page lists every WooCommerce order payment from any gateway, with instant search by reference, email or order number, and filters by provider, status and date. A detail drawer has receipt actions. A Products view shows top sellers by revenue and units, and each product links to its paid orders.
  • Guest order lookup: Add the “Order lookup” block or the [vprwc_order_lookup] shortcode to a page. Customers enter their email and get a secure link that works once and expires in 30 minutes. The link shows all their orders, payment references and receipts, with no account. Requests are rate limited, and the page gives the same answer whether or not an email has orders.

Third-party libraries

  • Dompdf (LGPL-2.1) for PDF output: https://github.com/dompdf/dompdf
  • php-qrcode by chillerlan (MIT) for QR codes: https://github.com/chillerlan/php-qrcode
  • DejaVu fonts bundled with Dompdf (free license).

Installation

  1. Upload the plugin from Plugins > Add New > Upload Plugin, or unzip it into wp-content/plugins/.
  2. Activate it. WooCommerce must be active.
  3. Go to WooCommerce > Settings > Acrislip Order Receipts to add your logo, legal business name, business address, phone and email, tax or registration number, accent color, a layout (Classic, Modern or Minimal) and invoice and receipt number prefixes.

FAQ

Why does an order not have a receipt?

A receipt confirms money received, so it only exists once the order is paid (Processing or Completed, or a payment date is set). Pending, failed and cancelled orders get none. The invoice is available before payment.

When are invoice and receipt numbers assigned?

An invoice number is assigned the first time an invoice is downloaded or emailed. A receipt number is assigned when the order is paid, or the first time a receipt is downloaded or emailed if it was paid before the plugin was installed. Each order keeps its numbers for good.

How do I add details from my payment gateway?

Three ways, from simplest:

  1. Save these order meta keys (all optional): _vprwc_payment_type (card, bank, wallet or other), _vprwc_channel, _vprwc_card_brand, _vprwc_card_last4, _vprwc_bank_name, _vprwc_account_last4, _vprwc_account_name, _vprwc_bank_reference, _vprwc_transaction_reference, _vprwc_customer_reference, _vprwc_environment (test or live), _vprwc_fee, _vprwc_net_amount. Only the last 4 digits of any card or account number are ever printed.
  2. Register an adapter: a class implementing VPRWC_Adapter (or extending VPRWC_Adapter_Base), added with the vprwc_register_adapters filter.
  3. Change the final array with the vprwc_receipt_payment_data filter.

    add_filter( ‘vprwc_receipt_payment_data’, function ( $data, $order ) {
    $data[‘card_brand’] = ‘Visa’;
    $data[‘card_last4’] = $order->get_meta( ‘_my_gateway_card_last4’ );
    return $data;
    }, 10, 2 );

Why does a Paystack, Flutterwave or Dodo receipt not show the card or bank?

Those gateway plugins do not save the card or bank details on the order, and this plugin never calls the provider to look them up. Save them with the _vprwc_* meta keys above if you need them on the receipt. Vant Payments for WooCommerce, the hosted-checkout gateway plugin for Paystack, Flutterwave and Dodo Payments, saves these keys for you on every verified payment.

Can I change the design?

Pick a layout and brand color in the settings, or copy templates/receipt.php to yourtheme/wc-payment-receipts/receipt.php (and optionally invoice.php) and edit it.

What does the verification page show?

Only the shop name, receipt number, date paid, amount paid and whether the payment still stands (paid, partly refunded or refunded). No names, emails or addresses.

What happens on uninstall?

Settings are removed. Invoice and receipt numbers on orders are kept, because issued documents are financial records. Define VPRWC_REMOVE_ALL_DATA as true in wp-config.php before deleting the plugin to remove them too.

Changelog

1.3.6

  • The plugin is now named Acrislip Order Receipts for WooCommerce.
  • Orders-list action icons are loaded through the WordPress admin style queue.
  • The bundled CSS parser is updated to 9.5.0.
  • The WooCommerce-missing admin notice is shown only to users who can activate plugins, and email confirmation notices stay on order screens.

1.3.5

  • Fix: A receipt is marked Paid only when the payment gateway has confirmed the payment. For Cray that means _cray_payment_verified or _cray_transaction_reference, and not _cray_payment_status=failed. A manual status change alone does not issue a receipt; the download returns “Payment not confirmed by the gateway” and the order screen explains why. Already-issued receipt numbers stay reserved. Bank transfer, cheque and cash on delivery remain trusted manual methods (filter: vprwc_trusted_manual_payment_methods).
  • Tweak: In wp-admin the plugin uses a short admin label (Plugins list, WooCommerce submenu, settings page and tab, and the order-screen metabox). The document title on receipts remains “Payment Receipt”. The plugin slug and text domain are unchanged.

1.3.4

  • Fix: Invoice and receipt numbers are assigned once and then reused. The order screen and the PDF now always show the same stored number. A bare sequence saved in number meta (for example “1”) is displayed as the formatted document number (for example INV-000001) and is not incremented again. Receipt PDFs are headed “Receipt no.” (and still show “Invoice no.” as a separate row when an invoice number exists). Documents always use the order billing email, never a payment-provider-reported email.

1.3.3

  • Fix: On Cray orders, Transaction reference is only Cray’s transaction reference (provider_reference / transaction_reference / _cray_transaction_reference). The merchant UUID stored as _cray_reference is shown on the Customer reference (for example “Guest · Cray ref …”) and is never used as the Transaction reference. The order-note fallback that treated that UUID as a transaction reference is no longer used for Cray.

1.3.2

  • New: Business address, business phone and business email settings, printed on invoices, receipts and receipt/invoice emails. Leave a field empty to keep using the WooCommerce store or email setting. These fields do not change tax or shipping.
  • Tweak: The receipt document title is now “Payment Receipt” on all layouts, in the PDF title and in the receipt email subject and heading.

1.3.1

  • Fix: Invoice and receipt PDFs, and order emails, now use the same transaction-reference lookup as the Payment box. Cray orders that only store the reference in _cray_reference (as cray-wc-secure does) no longer omit the Transaction reference row.

1.3.0

  • New: PDF invoices with sequential invoice numbers, available before and after payment.
  • New: Transaction reference and customer reference (WooCommerce customer number or Guest, plus the payment provider’s customer id when saved) on invoices, receipts, the Payment box, the Transactions dashboard, guest order lookup, My Account, the thank-you page and order emails, including the Customer invoice email.
  • New: Invoice and receipt downloads from the order screen (HPOS and legacy), the Transactions dashboard drawer, My Account, the thank-you page and guest order lookup. Receipts are available once the order is paid; invoices are available for any order. The invoice PDF can be attached to the Customer invoice email.
  • New: Premium invoice and receipt templates in Classic, Modern and Minimal styles, with a legal business name, tax or registration number, a payment-details panel and a neutral navy accent.

1.2.0

  • New: Payment box on the order screen with copyable references, status and environment badges, and receipt actions.
  • New: Reference column and search by payment reference on the orders list (HPOS and legacy). Reads references from order notes when a gateway stores none in meta.
  • New: Transactions dashboard covering every order payment, with KPIs, search, filters, a payment drawer and a Products view.
  • New: Guest order lookup block and shortcode, using single-use 30-minute email links.
  • New: Reads the _vprwc_gateway_reference, _vprwc_session_reference, _vprwc_fee_currency and _vprwc_paid_at meta keys.
  • Fix: The bundled CSS parser now matches the version used by WooCommerce 9.x, so order emails no longer fail when a receipt is attached.

1.1.0

  • New: built-in adapters for Paystack, Flutterwave, Stripe and Dodo Payments, alongside Cray.
  • New: separate Card payment and Bank transfer blocks on the receipt, with a setting to hide bank details.
  • New: vprwc_register_adapters filter and _vprwc_* order meta keys for any gateway.
  • New: compliance copy shows the gateway fee in the currency the gateway reports it in, and the payment mode.

1.0.0

  • First release.