manual echeck payment type, RT#26995
authorIvan Kohler <ivan@freeside.biz>
Mon, 26 Jan 2015 05:43:32 +0000 (21:43 -0800)
committerIvan Kohler <ivan@freeside.biz>
Mon, 26 Jan 2015 05:43:32 +0000 (21:43 -0800)
FS/FS/cust_main/Billing_ThirdParty.pm
FS/FS/cust_payby.pm

index faced8f..a1d19fb 100644 (file)
@@ -36,7 +36,11 @@ to that URL.
 =cut
 
 my @methods = qw(PAYPAL CC);
 =cut
 
 my @methods = qw(PAYPAL CC);
-my %method2payby = ( 'PAYPAL' => 'PPAL', 'CC' => 'MCRD' );
+my %method2payby = ( 'PAYPAL' => 'PPAL',
+                     'CC'     => 'MCRD', #?  but doesn't MCRD mean _offline_
+                                         #card, not third-party card?  but no
+                                         #one is doing non-paypal right now
+                   );
 
 sub create_payment {
   my $self = shift;
 
 sub create_payment {
   my $self = shift;
index 42bf64a..ad3d80a 100644 (file)
@@ -353,7 +353,7 @@ sub check {
   if ( $self->paydate eq '' || $self->paydate eq '-' ) {
     return "Expiration date required"
       # shouldn't payinfo_check do this?
   if ( $self->paydate eq '' || $self->paydate eq '-' ) {
     return "Expiration date required"
       # shouldn't payinfo_check do this?
-      unless $self->payby =~ /^(BILL|PREPAY|CHEK|DCHK|LECB|CASH|WEST|MCRD|PPAL)$/;
+      unless $self->payby =~ /^(BILL|PREPAY|CHEK|DCHK|LECB|CASH|WEST|MCRD|MCHK|PPAL)$/;
     $self->paydate('');
   } else {
     my( $m, $y );
     $self->paydate('');
   } else {
     my( $m, $y );