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

[ljcom] r13057: LJSUP-14623: Switch WebMoney payments to...

Committer: nnikulochkina
LJSUP-14623: Switch WebMoney payments to old implementation (do not use DengiOnline)
U   trunk/cgi-bin/LJ/Pay/Method/WebMoney.pm
U   trunk/templates/Shop/method/webmoney.tmpl
Modified: trunk/cgi-bin/LJ/Pay/Method/WebMoney.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Method/WebMoney.pm	2012-12-17 11:45:22 UTC (rev 13056)
+++ trunk/cgi-bin/LJ/Pay/Method/WebMoney.pm	2012-12-18 11:56:56 UTC (rev 13057)
@@ -76,6 +76,7 @@
             'form_action'   => $form_action,
             'form_intro'    => $form_intro,
             'cart'          => $cart_id,
+            'dengionline_disabled' => ! LJ::is_enabled('dengionline'),
             'dengionline_wm_disabled' => 1,
             'LMI_PAYMENT_AMOUNT' => $amt,
         };

Modified: trunk/templates/Shop/method/webmoney.tmpl
===================================================================
--- trunk/templates/Shop/method/webmoney.tmpl	2012-12-17 11:45:22 UTC (rev 13056)
+++ trunk/templates/Shop/method/webmoney.tmpl	2012-12-18 11:56:56 UTC (rev 13057)
@@ -1,8 +1,8 @@
-<TMPL_UNLESS dengionline_wm_disabled>
+<TMPL_IF EXPR="! dengionline_wm_disabled">
 
 <TMPL_INCLUDE name="templates/Shop/DengiOnline/Webmoney.tmpl">
 
-<TMPL_ELSE>
+<TMPL_ELSIF EXPR="! dengionline_disabled">
 
 <div class="b-payment-window b-payment-window-confirm b-payment-window-redirect b-payment-window-webmoney">
 <form action="<TMPL_VAR form_action>" method="post">
@@ -29,4 +29,18 @@
 
 </div>
 
-</TMPL_UNLESS>
\ No newline at end of file
+<TMPL_ELSE>
+
+<div class="b-wmpay">
+<form action="<TMPL_VAR form_action>" method="post">
+<TMPL_VAR form_intro>
+
+<p><TMPL_VAR expr="ml('pay.checkout.webmoney.amt', 'amt', amt)"></p>
+
+<p><button type="submit"><TMPL_VAR expr="ml('pay.checkout.webmoney.proceed')"></button></p>
+
+</form>
+
+</div>
+
+</TMPL_IF>
\ No newline at end of file

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