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

[ljcom] r13052: 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 06:48:47 UTC (rev 13051)
+++ trunk/cgi-bin/LJ/Pay/Method/WebMoney.pm	2012-12-17 07:33:16 UTC (rev 13052)
@@ -32,8 +32,10 @@
         'https://merchant.webmoney.ru/lmi/payment.asp' :
         'https://merchant.wmtransfer.com/lmi/payment.asp';
 
+    my $cart_id = $cart->get_cart_as_string();
+    my $desc = LJ::Lang::ml('pay.cart.webmoney.desc', {cart => $cart_id});
+    
     if (LJ::is_enabled('dengionline_wm')) {
-        my $cart_id = $cart->get_cart_as_string();
 
         my $result = LJ::DengiOnline->create_bill(
             cart_id     => $cart_id,
@@ -50,7 +52,7 @@
         return {
             %form_params,
             'form_action'      => $form_action,
-            'LMI_PAYMENT_DESC' => LJ::Lang::ml('pay.cart.webmoney.desc', {cart => $cart_id}),
+            'LMI_PAYMENT_DESC' => $desc,
             'cart'             => $cart_id,
         };
 
@@ -73,8 +75,9 @@
             'amt'           => $amt,
             'form_action'   => $form_action,
             'form_intro'    => $form_intro,
-            'cart'          => $cart->get_cart_as_string(),
+            'cart'          => $cart_id,
             'dengionline_wm_disabled' => 1,
+            'LMI_PAYMENT_AMOUNT' => $amt,
         };
     }
 }

Modified: trunk/templates/Shop/method/webmoney.tmpl
===================================================================
--- trunk/templates/Shop/method/webmoney.tmpl	2012-12-17 06:48:47 UTC (rev 13051)
+++ trunk/templates/Shop/method/webmoney.tmpl	2012-12-17 07:33:16 UTC (rev 13052)
@@ -4,14 +4,27 @@
 
 <TMPL_ELSE>
 
-<div class="b-wmpay">
+<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">
 <TMPL_VAR form_intro>
 
-<p><TMPL_VAR expr="ml('pay.checkout.webmoney.amt', 'amt', amt)"></p>
+        <div class="b-payment-window-content">
+            <div class="b-payment-window-logo">
+                <img src="/img/shop/payment/webmoney.png?v=24165" alt="WMZ">
+            </div>
+            <div class="b-payment-window-area"><TMPL_VAR expr="ml('shop.cart.payment.webmoney.notice')"></div>
+        </div>
 
-<p><button type="submit"><TMPL_VAR expr="ml('pay.checkout.webmoney.proceed')"></button></p>
+        <div class="b-payment-window-checkout">
+            <input class="b-btn" type="submit" name="submit" value="<TMPL_VAR expr="ml('shop.cart.payment.mobile.buy')">"/>
+            <a href="<TMPL_VAR NAME="SITEROOT">/shop/cart.bml?cart=<TMPL_VAR cart>" class="b-payment-window-cancel"><TMPL_VAR expr="ml('confirm.bubble.cancel')"></a>
+            <div class="b-payment-window-sum">
+                <p class="b-payment-window-total"><TMPL_VAR expr="ml('shop.cart.payment.mobile.total')"></p>
+                <span class="b-payment-window-sumbig"><TMPL_VAR LMI_PAYMENT_AMOUNT> <TMPL_VAR expr="ml('shop.cart.payment.wmz')"></span>
+            </div>
+        </div>
 
+
 </form>
 
 </div>

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