You are here

function pay_method::cancel_action in Pay 6

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

Cancel a transaction by marking it as 'canceled'.

Override this if your payment_method handler needs to do more.

1 call to pay_method::cancel_action()
pay_method_gateway::cancel_action in includes/handlers/pay_method_gateway.inc
Cancel a transaction.
1 method overrides pay_method::cancel_action()
pay_method_gateway::cancel_action in includes/handlers/pay_method_gateway.inc
Cancel a transaction.

File

includes/handlers/pay_method.inc, line 69
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 cancel_action() {
  $this->activity->result = 1;
  return 'canceled';
}