You are here

function pay_transaction::add_activity in Pay 6

Same name and namespace in other branches
  1. 7 includes/handlers/pay_transaction.inc \pay_transaction::add_activity()

File

includes/handlers/pay_transaction.inc, line 227
A base class for payment transactions.

Class

pay_transaction
@file A base class for payment transactions.

Code

function add_activity($pay_method) {
  $pay_activity = pay_activity_load();
  $pay_activity
    ->set_transaction($this);
  $pay_activity
    ->set_pay_method($pay_method);
  $pay_activity
    ->set_total($this->total);
  $pay_activity
    ->save();
  return $pay_activity;
}