You are here

function basic_cart_payment_pid in Basic cart 7.3

Sets the unique payment ID variable, so that it can be recovered by other modules.

Parameters

int $pid: The current payment ID registered for the current order id.

Return value

int $payment_id

2 calls to basic_cart_payment_pid()
basic_cart_order_node_insert in basic_cart_order/basic_cart_order.module
Implements hook_node_insert().
basic_cart_payment_node_submit in basic_cart_payment/basic_cart_payment.module
Implements hook_node_submit().

File

basic_cart_payment/basic_cart_payment.module, line 112

Code

function basic_cart_payment_pid($pid = NULL) {
  static $payment_id;
  if (!empty($pid) && !isset($payment_id)) {
    $payment_id = $pid;
  }
  return $payment_id;
}