Index: payment/cc_protx.php --- payment/cc_protx.php 2009-08-10 18:07:54.000000000 +0400 +++ payment/cc_protx.php 2009-08-13 06:47:03.000000000 +0400 @@ -34,33 +34,17 @@ # $Id: cc_protx.php,v 1.34.2.13 2009/02/05 10:39:40 avg Exp $ # -function simpleXor($InString, $Key) -{ - $KeyList = array(); - $output = ""; - - for($i=0;$i $v) { + $_crypt[] = $k."=".$v; + } + + $crypt_str = join("&",$_crypt); func_create_payment_form( $pp_test, array( - "VPSProtocol" => "2.22", + "VPSProtocol" => "2.23", "Vendor" => $pp_merch, "TxType" => "PAYMENT", - "Crypt" => base64_encode(simpleXor($crypt."Basket=".func_cc_protx_get_basket(), $pp_pass)) + "Crypt" => base64Encode(simpleXor($crypt_str, $pp_pass)) ), - "Protx VSP Form" + "Sage Pay" ); } exit;