ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[ljcom] r10227: LJSUP-8014: Credit card payment process ...

Committer: ssafronova
LJSUP-8014: Credit card payment process refactoring
U   trunk/bin/upgrading/en_LJ.dat
U   trunk/cgi-bin/LJ/Widget/CreditCard.pm
Modified: trunk/bin/upgrading/en_LJ.dat
===================================================================
--- trunk/bin/upgrading/en_LJ.dat	2011-03-11 07:23:45 UTC (rev 10226)
+++ trunk/bin/upgrading/en_LJ.dat	2011-03-11 08:13:22 UTC (rev 10227)
@@ -4311,6 +4311,8 @@
 
 pay.cc.validate.cvv2=Invalid CVV2 number entered. [[cardtype]] has a [[num]] digit CVV2 number.
 
+pay.cc.validate.email.need=Please check your email address. You must enter your email address to proceed.
+
 pay.cc.validate.name=Please enter the card owner's full name.
 
 pay.cc.form.postalcode.bubble-lite=Enter your postal code.

Modified: trunk/cgi-bin/LJ/Widget/CreditCard.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/CreditCard.pm	2011-03-11 07:23:45 UTC (rev 10226)
+++ trunk/cgi-bin/LJ/Widget/CreditCard.pm	2011-03-11 08:13:22 UTC (rev 10227)
@@ -429,6 +429,12 @@
         return undef;
     }
 
+    unless ($POST->{email}) {
+        $$err =  LJ::Lang::ml('pay.cc.validate.email.need');
+        $$field = 'email';
+        return undef;
+    }
+
     my @email_errors;
     LJ::check_email($POST->{email}, \@email_errors);
     if ($POST->{email} && @email_errors) {

Tags: dat, ljcom, pm, ssafronova
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments