You are here

function uc_payment_load in Ubercart 7.3

Same name and namespace in other branches
  1. 5 payment/uc_payment/uc_payment.module \uc_payment_load()
  2. 6.2 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 562

Code

function uc_payment_load($receipt_id) {
  if (!is_numeric($receipt_id)) {
    return FALSE;
  }
  $payment = db_query("SELECT * FROM {uc_payment_receipts} WHERE receipt_id = :id", array(
    ':id' => $receipt_id,
  ))
    ->fetchObject();
  return $payment;
}