Version

1.1.2.6 (checked in on 2008/03/24 at 02:40:12 by sime)

Description

These are hooks which are called using ec_receipt_invoke() or ec_receipt_alloc_invoke()

Functions

Namesort iconDescription
hook_allocation_infoRegister allocation types to the receipt system. An allocation is literally an allocation of some money on a receipt (say from a payment gateway) against a transaction.
hook_alloc_allocationtba (example is from store.module)
hook_alloc_build_itemstba (example is from store.module)
hook_alloc_get_addressThe allocation object provider returns an appropriate address. Eg. store returns an address from the transaction object.
hook_alloc_get_currencyThe allocation object provider returns currency. Eg. store returns the currency of the transaction object.
hook_alloc_get_customerThe allocation object provider returns the customer. Eg. store returns the customer from the transaction object.
hook_alloc_get_customer_namesThe allocation object provider customer names from an allocation object. Eg. store returns the customers from the transaction object.
hook_alloc_get_invoice_noThe allocation object provider returns the invoice number of the allocation object. Eg. store returns the invoice number from the transaction object.
hook_alloc_get_itemsThe allocation object provider returns the items of the allocation object. Eg. store returns the product items from the transaction object.
hook_alloc_get_payment_dataReturn the payment data of an allocation object. Eg. store returns the data previously assigned in 'set_payment_data'
hook_alloc_get_payment_formI have no idea how an allocation provide returns a payment form since its not a receipt type - sime
hook_alloc_get_payment_typeReturn the payment method of an allocation object. Eg. store returns the method assigned in 'set_payment_data'
hook_alloc_get_totalReturn the total amount for an allocation object. Eg. store returns the total for a transaction.
hook_alloc_loadLoad an allocation object. Eg. store returns the total for a transaction.
hook_alloc_set_payment_dataAllows an allocation object provider to assign payment data to its native object. Eg. store assigns payment data to its transaction.
hook_receipt_infoRegister payments gateways to the e-Commerce Receipts system
hook_receipt_loadLoad additional receipt information from the database.
hook_receipt_payment_formBuild a form for collecting the payment information.
hook_receipt_payment_url
hook_receipt_process_paymentUsing the information past from the payment form the system will process the payment and update the receipt.
hook_receipt_saveSave additional information about the receipt to the database.