Показать сообщение отдельно

  #9  
Старый 29.01.2010, 02:01
mastaadon
Новичок
Регистрация: 26.03.2009
Сообщений: 16
Провел на форуме:
66030

Репутация: 0
По умолчанию

Ребята может кто поможет выяснить как бы этот код выглядел на C#

PHP код:
     $str = '<request>
          <version>1.2</version>
          <action>send_money</action>
          <kind>phone</kind>
          <merchant_id>i1234567890</merchant_id>
          <order_id>ORDER_123</order_id>
          <to>+3801234567890</to>
          <amount>10</amount>
          <currency>USD</currency>
          <description>Here is your 10 buck</description>
        </request>';
     $operation_xml = base64_encode($str);
     $signature = base64_encode(sha1('143fd234323fdsf'.$str.'143fd234323fdsf', 1));
     $operation_envelop = '<operation_envelope>
                              <operation_xml>'.$operation_xml.'</operation_xml>
                              <signature>'.$signature.'</signature>
                         </operation_envelope>';
     $post = '<?xml version=\"1.0\" encoding=\"UTF-8\"?>
                              <request>
                                   <liqpay>'.
$operation_envelop.'</liqpay>
                              </request>';
 
Ответить с цитированием