Hello. I'm stupid already, Robokassa gives the code:

print "<html><script language=JavaScript ". "src='https://auth.robokassa.ru/Merchant/PaymentForm/FormL.js?". "MrchLogin=$mrh_login&OutSum=$out_summ&InvId=$inv_id&IncCurrLabel=$in_curr". "&Desc=$inv_desc&SignatureValue=$crc&Shp_item=$shp_item". "&Culture=$culture&Encoding=$encoding'></script></html>" 

Wonderful. But I need to withdraw the button on my page! Writing:

 $online_pay = qq~ <script language=JavaScript ". "src='https://auth.robokassa.ru/Merchant/PaymentForm/FormL.js?". "MrchLogin=$mrh_login&OutSum=$out_summ&InvId=$inv_id&IncCurrLabel=$in_curr". "&Desc=$inv_desc&SignatureValue=$crc&Shp_item=$shp_item". "&Culture=$culture&Encoding=$encoding'></script> ~; 

Then through

  HTML::Template-> online_pay => $online_pay <TMPL_VAR NAME="online_pay"> 

Does not work! In the source code of the page, this code is all red and is not interpreted by the browser in any way. I'm not very happy with javascript, please help. Why he is not satisfied.

  • four
    These are all ". At the end of lines and " at the beginning of lines in order to assemble a line, only their contents should go to the browser. And you open your own one "quotation mark" ~ and eventually send the text to the browser along with all the quotes that should have been interpreted on the server side. <script src='....'></script> should come to the browser - Mike
  • For sure! Everything worked out. Thank!!! - AIex

0