You are here

function hook_pay_form_handler_info in Pay 7

Same name and namespace in other branches
  1. 6 pay.api.php \hook_pay_form_handler_info()

This hook is used to inform Pay of available payment form handlers. A payment form is where an actual payment transaction is initiated (e.g. a donation form, checkout page, etc. It minimally includes an 'amount' field, and probably will provide users with the option to complete the transaction by way of one or more payment methods.

File

./pay.api.php, line 43
Hooks provided by the Pay module.

Code

function hook_pay_form_handler_info() {
  return array(
    'pay_custom_form' => array(
      'title' => t('Custom pay form'),
      'description' => t('A custom payment form.'),
      'handler' => 'pay_custom_form',
      'path' => drupal_get_path('module', 'pay_custom') . '/includes',
    ),
  );
}