You are here

function pay_gateway_response in Pay 6

Same name and namespace in other branches
  1. 7 pay.module \pay_gateway_response()

Callback for pay activity responses.

1 string reference to 'pay_gateway_response'
pay_menu_menu in includes/pay.menu.inc
Implementation of hook_menu().

File

./pay.module, line 465
Pay module allows for accepting payments using pluggable payment backends.

Code

function pay_gateway_response($pay_activity) {

  // Add an additional activity to the transaction to track the response.
  $new_activity = $pay_activity
    ->pay_transaction()
    ->add_activity($pay_activity
    ->pay_method());
  $new_activity
    ->do_activity('response', $_REQUEST);
}