You are here

function commerce_amex_commerce_payment_method_info in Commerce American Express Payment Gateway (Amex) 7

Implements hook_commerce_payment_method_info().

File

./commerce_amex.module, line 218
Implements American Express payment gateway for use in Drupal Commerce.

Code

function commerce_amex_commerce_payment_method_info() {
  $payment_methods = array();
  $payment_methods['amex_hosted'] = array(
    'base' => 'commerce_amex_hosted',
    'title' => t('American Express'),
    'short_title' => t('AMEX Host'),
    'display_title' => t('Pay with Credit or Debit Card'),
    'description' => t('Integrates American Express Hosted Payment form.'),
    'offsite' => TRUE,
    'cardonfile' => array(
      // create and update are not used because offsite card form.
      'update callback' => 'commerce_amex_cardonfile_update',
      //'update form callback' => 'commerce_amex_cardonfile_update_form',
      'delete callback' => 'commerce_amex_cardonfile_delete',
      'charge callback' => 'commerce_amex_cardonfile_charge',
    ),
  );
  return $payment_methods;
}