Permalink
Browse files

New feature: Autoconfigure credit card types, if the merchant does no…

…t accept this type of credit card; Backported from HEAD.
  • Loading branch information...
1 parent 0ee1574 commit 22fa4da34fcbc3e920b6e3a519a74e5e2896c280 ethem committed Aug 31, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/authorize/authorizenetlib.php
@@ -341,7 +341,7 @@ function authorize_action(&$order, &$message, &$extra, $action=AN_ACTION_NONE, $
if (!$test && !empty($cctype) && ($reasonno == 17 or $reasonno == 28)) {
$ccaccepts = enrolment_plugin_authorize::get_list_of_creditcards();
unset($ccaccepts[$cctype]);
- set_config('an_acceptccs', array_keys($ccaccepts));
+ set_config('an_acceptccs', implode(',', array_keys($ccaccepts)));
enrolment_plugin_authorize::email_to_admin("Autoconfigure; This card type " .
"isn't accepted: $cctype. New config:", $ccaccepts);
}

0 comments on commit 22fa4da

Please sign in to comment.