function commerce_cardonfile_testing_default_rules_configuration in Commerce Card on File 7.2
Implements hook_default_rules_configuration().
File
- tests/
commerce_cardonfile_testing/ commerce_cardonfile_testing.rules_default.inc, line 11 - Default Rules configuration.
Code
function commerce_cardonfile_testing_default_rules_configuration() {
$items = array();
// Reaction rule: Payment rule for Commerce Card on File Testing payment.
$items['commerce_payment_commerce_cardonfile_testing_payment'] = entity_import('rules_config', '{ "commerce_payment_commerce_cardonfile_testing_payment" : {
"LABEL" : "Commerce Card on File Test Payment",
"PLUGIN" : "reaction rule",
"TAGS" : [ "Commerce Payment" ],
"REQUIRES" : [ "commerce_payment" ],
"ON" : [ "commerce_payment_methods" ],
"DO" : [
{ "commerce_payment_enable_commerce_cardonfile_testing_payment" : {
"commerce_order" : [ "commerce-order" ],
"payment_method" : "commerce_cardonfile_testing_payment"
}
}
]
}
}');
}