каким лучше способом этот код
<?
$signature="222";
$url="https://www.liqpay.com/?do=clickNbuy";
$xml="<request>
<version>1.2</version>
<result_url>http://sofa.org.ua</result_url>
<server_url>http://sofa.org.ua</server_url>
<merchant_id>111</merchant_id>
<order_id>ORDER_$orderer.orderID</order_id>
<amount>1</amount>
<currency>UAH</currency>
<description>ORDER_$orderer.orderID</description>
<default_phone>+$orderer.cust_phone</default_phone>
<pay_way>card</pay_way>
</request>
";
$xml_encoded = base64_encode($xml);
$lqsignature = base64_encode(sha1($signature.$xml.$signature,1));
echo("<form action='$url' method='POST'>
<input type='hidden' name='operation_xml' value='$xml_encoded' />
<input type='hidden' name='signature' value='$lqsignature' />
<input type='submit' value='Pay'/>
</form>");
?>
вкинуть в order_place.tpl.html