function commerce_cardonfile_testing_commerce_payment_method_info in Commerce Card on File 7.2
Implements hook_commerce_payment_method_info().
File
- tests/
commerce_cardonfile_testing/ commerce_cardonfile_testing.module, line 11 - Provides a test payment method implementing the Card on File API.
Code
function commerce_cardonfile_testing_commerce_payment_method_info() {
$payment_methods = array();
$payment_methods['commerce_cardonfile_testing_payment'] = array(
'title' => t('Commerce Card on File Test Payment'),
'description' => t('Payment gateway that allows testing Commerce Card on File.'),
'cardonfile' => array(
'charge callback' => 'commerce_cardonfile_testing_payment_cardonfile_charge',
'create callback' => 'commerce_cardonfile_testing_payment_cardonfile_create',
'update callback' => 'commerce_cardonfile_testing_payment_cardonfile_update',
'delete callback' => 'commerce_cardonfile_testing_payment_cardonfile_delete',
),
);
return $payment_methods;
}