Committer: nnikulochkina
LJSUP-13106: Add PayMethod that can be used only with blockingU 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;