You are here

function Payment::finish in Payment 7

Finish the payment after its execution.

1 call to Payment::finish()
Payment::execute in ./payment.classes.inc
Execute the actual payment.

File

./payment.classes.inc, line 180
The API and related functions for executing and managing payments.

Class

Payment
A single payment. Contains all payment-specific data.

Code

function finish() {
  entity_save('payment', $this);
  module_invoke_all('payment_pre_finish', $this);
  if (module_exists('rules')) {
    rules_invoke_event('payment_pre_finish', $this);
  }
  call_user_func($this->finish_callback, $this);
}