You are here

function commerce_square_commerce_payment_method_info in Commerce Square Connect 7

Implements hook_commerce_payment_method_info().

File

./commerce_square.module, line 53
Module file for Commerce Square.

Code

function commerce_square_commerce_payment_method_info() {
  $payment_methods['commerce_square'] = array(
    'base' => 'commerce_square_payment_method',
    'title' => t('Square Connect'),
    'short_title' => t('Square'),
    'description' => t('Square Connect Payment Method'),
    'terminal' => TRUE,
    'cardonfile' => array(
      'create callback' => 'commerce_square_cardonfile_create',
      'charge callback' => 'commerce_square_cardonfile_charge',
      'update callback' => 'commerce_square_cardonfile_update',
      'delete callback' => 'commerce_square_cardonfile_delete',
    ),
  );
  return $payment_methods;
}