function pay_method::transactionCount in Pay 7
Return the total number of transactions that have used this payment method.
1 call to pay_method::transactionCount()
- pay_method::delete in includes/
handlers/ pay_method.inc - Delete this payment method.
File
- includes/
handlers/ pay_method.inc, line 178 - The base class for payment activities. All payment method classes should extend this class.
Class
- pay_method
- @file The base class for payment activities. All payment method classes should extend this class.
Code
function transactionCount() {
return db_query('SELECT COUNT(1) FROM {pay_activity} a WHERE a.pmid = :pmid
GROUP BY pxid', array(
':pmid' => $this->pmid,
))
->fetchColumn(1);
}