wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r12180: LJSUP-12412: Implement 'Dengi online' pa...

Committer: wisest-owl
LJSUP-12412: Implement 'Dengi online' payment system in LiveJournal Shop

U   trunk/cgi-bin/LJ/Widget/Shop/Cart.pm
U   trunk/templates/Shop/Cart.tmpl
Modified: trunk/cgi-bin/LJ/Widget/Shop/Cart.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/Cart.pm	2012-06-26 11:29:44 UTC (rev 12179)
+++ trunk/cgi-bin/LJ/Widget/Shop/Cart.pm	2012-06-26 12:09:50 UTC (rev 12180)
@@ -2,6 +2,7 @@
 use strict;
 
 use base 'LJ::Widget::Shop';
+use LJ::Widget::Shop::View::DengiOnline;
 
 sub require_remote { 0 }
 sub require_cart { 1 }
@@ -186,6 +187,8 @@
         LJ::Pay::Wallet->get_user_balance($remote) < $cart_price_tokens &&
         !LJ::Pay::Payment::PayItem::WalletTokens->present_in($cart);
 
+    my $dengi_online_params = $LJ::DISABLED{'dengionline'} ? {} : LJ::Widget::Shop::View::DengiOnline->template_params($cart);
+
     # compile data
     return {
         %$table_params,
@@ -193,6 +196,7 @@
         'method_groups' => \@method_groups,
         'allow_repeat' => $cart->allow_repeat,
         'show_wallet_warning' => $show_wallet_warning,
+        %$dengi_online_params,
     };
 }
 

Modified: trunk/templates/Shop/Cart.tmpl
===================================================================
--- trunk/templates/Shop/Cart.tmpl	2012-06-26 11:29:44 UTC (rev 12179)
+++ trunk/templates/Shop/Cart.tmpl	2012-06-26 12:09:50 UTC (rev 12180)
@@ -139,3 +139,6 @@
 	</TMPL_IF>
 </TMPL_UNLESS>
 </div>
+
+<TMPL_INCLUDE "templates/Shop/DengiOnline.tmpl">
+

Tags: ljcom, pm, tmpl, wisest-owl
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