Skip to content

Commit

Permalink
* Add test numbers for Mastercard, Discover, Amex
Browse files Browse the repository at this point in the history
  • Loading branch information
perusionmike committed Sep 16, 2015
1 parent 576b762 commit bc4269e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Vend/Payment/TestPayment.pm
Expand Up @@ -2,7 +2,7 @@
#
# $Id: TestPayment.pm,v 1.10 2007-08-09 13:40:55 pajamian Exp $
#
# Copyright (C) 2002-2007 Interchange Development Group
# Copyright (C) 2002-2015 Interchange Development Group
# Copyright (C) 2002 Cursor Software Limited.
# All Rights Reserved.
#
Expand Down Expand Up @@ -320,7 +320,7 @@ sub testpayment {
$result{'pop.auth-code'} = $opt->{auth_code};
}
}
elsif ($actual->{mv_credit_card_number} eq '4111111111111111'){
elsif ($actual->{mv_credit_card_number} =~ /^(4111111111111111|6011333333333333|5454545454545454|341111111111111)$/){
$result{'pop.status'} = 'success';
$result{'pop.order-id'} = $opt->{order_id};
$result{'pop.auth-code'} = 'test_auth_code';
Expand Down

0 comments on commit bc4269e

Please sign in to comment.