[memb_keap_show_receipt]

Description

Renders the full receipt for a single order. Which order comes from the order_id attribute or, when that is unset, the ?order_id= query parameter, so a link from [memb_keap_list_invoices] or an email can drop the member directly onto their receipt.

The member sees the order under its title with the invoice and order numbers, the dates, and the status; who was billed, with name, company, and email; and the ship-to address when the order carries one. Below that: a line-item table with quantities, prices, and amounts; the total, amount paid, and balance due, with the currency spelled out; one line per payment that cleared, with date and note; the scheduled payments still to come, each with its due date; and the terms and notes from Keap.

Receipts are private by construction. An order ID that belongs to another contact is treated as not found, so nothing leaks across members, and the shortcode never renders a receipt for an order the member does not own.

A missing order shows empty_text. A Keap outage shows nothing at all, so a connection problem never poses as a missing receipt. Receipts hold for an hour in the cache; a payment made from the invoices list clears the affected receipt, so the member's next view of the page shows it.

Shortcode Examples

Read the order from the URL, for a receipt page linked from a list:

[memb_keap_show_receipt]

Point at a specific order:

[memb_keap_show_receipt order_id="12345"]

Render through a named template of your own:

[memb_keap_show_receipt template="printable"]

Shortcode Parameters

date_format

PHP date format applied to the receipt's dates. Default: F j, Y.

debug

Prepend operator-facing notices for missing contact links. Super admins only. Default: no.

empty_text

Message shown when the order does not exist or belongs to another member. Default: No receipt found..

order_id

Keap order ID to show. 0 falls back to the ?order_id= query parameter. Default: 0.

template

Render through a named template instead of the built-in one. Torii looks for torii/shortcodes/keap/receipt/name.php in your theme (child theme first), falling back to the plugin's templates/shortcodes/keap/receipt/ directory. Copy the default template into your child theme to rework it; the file documents every value it receives. See Shortcode Templates. Default: default.

Shortcode Attributes

Attribute Value
Conditional No
Nestable No
Accepts formatting No