hook_alloc_get_payment_data

Definition

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

Description

Return the payment data of an allocation object. Eg. store returns the data previously assigned in 'set_payment_data'

Related topics

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

<?php
function hook_alloc_get_payment_data($txn) {
  return $txn->payment_data[$txn->payment_method];
}
?>