журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[ljcom] r12355: LJSUP-13106: Add PayMethod that can be u...

Committer: nnikulochkina
LJSUP-13106: Add PayMethod that can be used only with blocking
U   trunk/cgi-bin/LJ/Pay/Method.pm
U   trunk/cgi-bin/LJ/Pay/Payment.pm
Modified: trunk/cgi-bin/LJ/Pay/Method.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Method.pm	2012-07-25 16:19:40 UTC (rev 12354)
+++ trunk/cgi-bin/LJ/Pay/Method.pm	2012-07-26 08:03:15 UTC (rev 12355)
@@ -60,6 +60,7 @@
     ],
     'other' => [
         'Free',
+        'Blocking',
     ],
 };
 

Modified: trunk/cgi-bin/LJ/Pay/Payment.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment.pm	2012-07-25 16:19:40 UTC (rev 12354)
+++ trunk/cgi-bin/LJ/Pay/Payment.pm	2012-07-26 08:03:15 UTC (rev 12355)
@@ -871,7 +871,8 @@
 
 sub can_checkout {
     my $self = shift;
-
+  
+    return 0 if $self->get_method eq 'blocking';
     return 0 unless $self->get_used eq 'C';
     return 0 unless $self->get_items;
     return 1;

Tags: ljcom, nikulochkina, nnikulochkina, pm
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