Document ec_receipt hooks
| Project: | e-Commerce |
| Version: | 6.x-4.x-dev |
| Component: | ec_receipt |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
The number of hooks implemented in ec_receipt is a bit scary.
Those hooks needs documentation. Not sure if this list is complete.
Receipt related
Receipt modules
hook_receipt_refund($receipt)
hook_receipt_init('transaction', $txn)
hook_receipt_process_payment($receipt, $type, $object)
hook_receipt_payment_url($receipt, $type, $object)
hook_receipt_save($receipt)
hook_receipt_load($receipt)
hook_receipt_filter($type, $object)
hook_receipt_info()
All modules
hook_receipt_post_save($receipt, $orig_receipt)
hook_ec_receipt_post_save($receipt, $orig_receipt)
hook_ec_receipt_status($receipt, $original)
Allocation related
Receipt modules
hook_alloc_get_payment_data($object)
hook_alloc_set_payment_data($object, $payment_data)
hook_alloc_get_total($object)
hook_alloc_get_currency($object)
hook_alloc_get_items($object)
hook_alloc_get_recurring($object)
hook_alloc_get_address($object, 'billing')
hook_alloc_get_invoice_no($object)
hook_alloc_get_handling($object)
hook_alloc_get_shipping($object)
hook_alloc_get_tax($object)
hook_alloc_get_customer_names($object)
hook_alloc_get_load($invoice)
hook_alloc_update_recurring_payment($object, $receipt)
hook_alloc_get_customer($object)
hook_alloc_can_reverse($object, TRUE)
hook_alloc_get_total($object)
hook_alloc_allocation($object, $total)
hook_alloc_get_payment_type($object)
All modules
hook_allocation_info()
hook_ec_receipts_atypes_alter($types)

#1
I have started adding some of these to the repository. See http://api.drupalecommerce.org/api/file/contrib-6/ecommerce/ec_receipt/e...