Tracking payment amounts
by
22 Feb 2006
By default, vBulletin has an amount and currency column in it's paymenttransaction table, but these fields are not used (reported as a "bug", was told these would be removed in future version). However, a couple simple lines and with PayPal you can record both of these fields. This is critical for me as it allows me to track who paid how much. In includes/paymentapi/class_paypal.php, find: Code:
$this->transaction_id = $this->registry->GPC['txn_id']; Code:
// MDP $this->transaction_amt = $this->registry->GPC['mc_gross']; $this->transaction_cur = $this->registry->GPC['mc_currency']; Code:
$trans['state'] = $apiobj->type; Code:
// MDP $trans['amount'] = $apiobj->transaction_amt; $trans['currency'] = $apiobj->transaction_cur; This works with both 3.53 and the new 3.54 releases. |