[freeside-commits] branch FREESIDE_4_BRANCH updated. 196d38fd1142a48d2bd1f9497317541f93ecd692
Jonathan Prykop
jonathan at 420.am
Fri Sep 2 16:47:18 PDT 2016
The branch, FREESIDE_4_BRANCH has been updated
via 196d38fd1142a48d2bd1f9497317541f93ecd692 (commit)
from 2c0dae66d61e22b80cb0fed693cb7ee3daa20a39 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 196d38fd1142a48d2bd1f9497317541f93ecd692
Author: Jonathan Prykop <jonathan at freeside.biz>
Date: Fri Sep 2 18:43:19 2016 -0500
71672: Issues with payment portal
diff --git a/fs_selfservice/FS-SelfService/cgi/selfservice.cgi b/fs_selfservice/FS-SelfService/cgi/selfservice.cgi
index 4a309c9..d44a379 100755
--- a/fs_selfservice/FS-SelfService/cgi/selfservice.cgi
+++ b/fs_selfservice/FS-SelfService/cgi/selfservice.cgi
@@ -613,25 +613,25 @@ sub payment_results {
#the rest, it gives better error messages
$cgi->param('amount') =~ /^\s*(\d+(\.\d{2})?)\s*$/
- or die "Illegal amount: ". $cgi->param('amount'); #!!!
+ or return { 'error' => "Illegal amount: ". $cgi->param('amount') }; #!!!
my $amount = $1;
my $payinfo = $cgi->param('payinfo');
$payinfo =~ s/[^\dx]//g;
$payinfo =~ /^([\dx]{13,16}|[\dx]{8,9})$/
#or $error ||= $init_data->{msgcat}{invalid_card}; #. $self->payinfo;
- or die "illegal card"; #!!!
+ or return { 'error' => "illegal card" }; #!!!
$payinfo = $1;
unless ( $payinfo =~ /x/ ) {
validate($payinfo)
#or $error ||= $init_data->{msgcat}{invalid_card}; #. $self->payinfo;
- or die "invalid card"; #!!!
+ or return { 'error' => "invalid card" }; #!!!
}
if ( $cgi->param('card_type') ) {
cardtype($payinfo) eq $cgi->param('card_type')
#or $error ||= $init_data->{msgcat}{not_a}. $cgi->param('CARD_type');
- or die "not a ". $cgi->param('card_type');
+ or return { 'error' => "not a ". $cgi->param('card_type') };
}
$cgi->param('paycvv') =~ /^\s*(.{0,4})\s*$/ or die "illegal CVV2";
-----------------------------------------------------------------------
Summary of changes:
fs_selfservice/FS-SelfService/cgi/selfservice.cgi | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
More information about the freeside-commits
mailing list