function pay_method_direct::set_valid_actions in Pay 6
Same name and namespace in other branches
- 7 includes/handlers/pay_method_direct.inc \pay_method_direct::set_valid_actions()
Augment the available payment actions for transactions that include direct payment methods.
The 'response' action will allow us to respond to updates from the gateway.
Overrides pay_method::set_valid_actions
File
- includes/
handlers/ pay_method_direct.inc, line 32 - The base class for 'direct' payment activities, where payments are collected on third-party sites such as PayPal, and the responses are returned to Drupal on a URL callback.
Class
- pay_method_direct
- @file The base class for 'direct' payment activities, where payments are collected on third-party sites such as PayPal, and the responses are returned to Drupal on a URL callback.
Code
function set_valid_actions($pay_form, &$actions) {
$actions['response'] = array(
'title' => 'Response',
'callback' => 'response_action',
'valid states' => array(
'pending',
),
);
}