[interchange] * Add test numbers for Mastercard, Discover, Amex
Mike Heins <[email protected]> Wed, 16 Sep 2015 14:12:58 +0000
| Newsgroups | gmane.comp.web.interchange.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit bc4269e140b9592f936279d2681bd9214fdf9bca Author: Mike Heins <[email protected]> Date: Wed Sep 16 09:44:41 2015 -0400 * Add test numbers for Mastercard, Discover, Amex lib/Vend/Payment/TestPayment.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) --- diff --git a/lib/Vend/Payment/TestPayment.pm b/lib/Vend/Payment/TestPayment.pm index 50a48b3..c469acf 100644 --- a/lib/Vend/Payment/TestPayment.pm +++ b/lib/Vend/Payment/TestPayment.pm @@ -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. # @@ -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';