Brad Whitaker (whitaker) wrote in changelog,
Brad Whitaker
whitaker
changelog

[ljcom] r4133: -- WebMoney and Yandex Money are mutuall...

Committer: whitaker
-- WebMoney and Yandex Money are mutually exclusive


U   trunk/cgi-bin/paylib.pl
Modified: trunk/cgi-bin/paylib.pl
===================================================================
--- trunk/cgi-bin/paylib.pl	2007-01-10 03:22:14 UTC (rev 4132)
+++ trunk/cgi-bin/paylib.pl	2007-01-10 19:34:38 UTC (rev 4133)
@@ -3542,12 +3542,6 @@
                                          );
                     }
 
-                    # add in webmoney if it's configured
-                    if ($LJ::PAY_WEBMONEY_PURSE_ID) {
-                        push @pay_list, "webmoney" => LJ::Lang::ml('pay.cart.paymentmethod.webmoney');
-
-                    }
-
                     # add in russian sms payments if user is SUP
                     if (LJ::Pay::can_use_sup_sms($remote)) {
                         push @pay_list, "sup_sms"    => LJ::Lang::ml('pay.cart.paymentmethod.sup_sms');
@@ -3555,6 +3549,12 @@
 
                     if (LJ::Pay::can_use_sup_yandex($remote)) {
                         push @pay_list, "sup_yandex" => LJ::Lang::ml('pay.cart.paymentmethod.sup_yandex');
+
+                    # add in WebMoney if it's configured
+                    # -- WebMoney is exclusive of Yandex money, so it's only available
+                    #    if the user is unable to use SUP Yandex services
+                    } elsif ($LJ::PAY_WEBMONEY_PURSE_ID) {
+                        push @pay_list, "webmoney" => LJ::Lang::ml('pay.cart.paymentmethod.webmoney');
                     }
 
 

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 

  • 5 comments