X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=PaymentsGateway.pm;fp=PaymentsGateway.pm;h=956aed5e18c509ccf0711acb2b66d8bba5e93a81;hb=ae9dbc07ae4658bc4ebaedb17625f1201fedb236;hp=6fabcbf7f2a146a2d312ad27d6b97c9d333c5e4f;hpb=9b9f7dbb4525b87ceb068cd31a258044168c444c;p=Business-OnlinePayment-PaymentsGateway.git diff --git a/PaymentsGateway.pm b/PaymentsGateway.pm index 6fabcbf..956aed5 100644 --- a/PaymentsGateway.pm +++ b/PaymentsGateway.pm @@ -91,6 +91,7 @@ sub map_fields { 'discover' => 10, 'cc' => 10, 'check' => 20, + 'echeck' => 20, ); #pg_type/action = action + type @@ -174,7 +175,7 @@ sub submit { ) ); - if ( $content{'type'} =~ /^check$/i ) { + if ( $content{'type'} =~ /^e?check$/i ) { push @fields, qw( ecom_payment_check_trn ecom_payment_check_account ecom_payment_check_account_type );