Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[ljcom] r9731: LJSUP-7382: Change comments for Webmoney...

Committer: gariev
LJSUP-7382: Change comments for Webmoney transactions
U   trunk/cgi-bin/LJ/Pay/Method/WebMoney.pm
Modified: trunk/cgi-bin/LJ/Pay/Method/WebMoney.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Method/WebMoney.pm	2010-11-18 05:14:08 UTC (rev 9730)
+++ trunk/cgi-bin/LJ/Pay/Method/WebMoney.pm	2010-11-18 05:54:12 UTC (rev 9731)
@@ -17,12 +17,15 @@
 
     my $remote = LJ::get_remote();
     my $amt = sprintf("%.02f", $cart->{amount});
+    my $cart_owner = $cart->get_owner;
+    my $desc = "Order number " . $cart->get_cart_as_string . " created by " . 
+        ( ($cart_owner) ? $cart_owner->user : "(anonymous user)" );
 
     my $form_intro = LJ::html_hidden(
         'LMI_PAYEE_PURSE' => $LJ::PAY_WEBMONEY_PURSE_ID,
         'LMI_PAYMENT_AMOUNT' => $amt,
         'LMI_PAYMENT_NO' => $cart->get_payid,
-        'LMI_PAYMENT_DESC' => 'LiveJournal Shop payment',
+        'LMI_PAYMENT_DESC' => $desc,
         'LMI_SIM_MODE' => $LJ::PAY_WEBMONEY_TEST_SIM_MODE,
         'anum' => $cart->get_anum,
     );

Tags: gariev, ljcom, pm
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