function pay_form::set_transaction in Pay 7
Same name and namespace in other branches
- 6 includes/handlers/pay_form.inc \pay_form::set_transaction()
1 call to pay_form::set_transaction()
- pay_form::form_submit in includes/
handlers/ pay_form.inc
File
- includes/
handlers/ pay_form.inc, line 40 - The base class for payment activities. All payment form classes should extend this.
Class
- pay_form
- @file The base class for payment activities. All payment form classes should extend this.
Code
function set_transaction($values) {
module_load_include('inc', 'pay', 'includes/handlers/pay_transaction');
$this->transaction = new pay_transaction($values);
if (!$this->transaction->pfid) {
$this->transaction->pfid = $this->pfid;
}
$this->transaction
->save($values);
return $this->transaction;
}