hook_alloc_set_payment_data

Definition

hook_alloc_set_payment_data(&$txn, $payment_data)
ecommerce-5--4/docs/developer/hooks/ec_receipt.php, line 255

Description

Allows an allocation object provider to assign payment data to its native object. Eg. store assigns payment data to its transaction.

Related topics

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

<?php
function hook_alloc_set_payment_data(&$txn, $payment_data) {
  $txn->payment_data[$txn->payment_method] = $payment_data;
}
?>