Verify invoice payment link
verify_invoice_payment_linkVerify that a payment link or hash is valid for a given client and invoice, and check whether payment is still due.
Instructions
Check that a payment link/hash is valid for a given client and invoice, and report whether payment is still due. Accepts either the raw 16-character hash (with client_id) or the sid token / full payment URL (decrypted via Encryption.systemDecrypt). Wraps Invoices.verifyPayHash and Invoices.get. On IonCube-encoded installs this call fails with 'Failed to retrieve the default value' unless BLESTA_SYSTEM_KEY is configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | No | The `sid` query token, or the entire payment URL containing it | |
| hash | No | The 16-character pay hash returned by create_invoice_payment_link | |
| client_id | No | Numeric client ID; required when `hash` is given, derived from `sid` otherwise | |
| invoice_id | Yes | Numeric invoice ID the link is for |