hook_alloc_get_invoice_no

Definition

hook_alloc_get_invoice_no($txn)
ecommerce-5--4/docs/developer/hooks/ec_receipt.php, line 311

Description

The allocation object provider returns the invoice number of the allocation object. Eg. store returns the invoice number from the transaction object.

Related topics

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

<?php
function hook_alloc_get_invoice_no($txn) {
  return $txn->txnid;
}
?>