You are here

function uc_payment_load in Ubercart 6.2

Same name and namespace in other branches
  1. 5 payment/uc_payment/uc_payment.module \uc_payment_load()
  2. 7.3 payment/uc_payment/uc_payment.module \uc_payment_load()

Loads a single payment from the database by receipt_id.

1 call to uc_payment_load()
uc_payment_delete in payment/uc_payment/uc_payment.module
Deletes a payment from the database.

File

payment/uc_payment/uc_payment.module, line 728

Code

function uc_payment_load($receipt_id) {
  if (!is_numeric($receipt_id)) {
    return FALSE;
  }
  $result = db_query("SELECT * FROM {uc_payment_receipts} WHERE receipt_id = %d ", $receipt_id);
  $payment = db_fetch_object($result);
  return $payment;
}