@Babygurgles
And its a yes from me as they say
@perfectpassion
@Vger
Hi Guys
On the code changing front, I've made changes to admin/orders_protx.php as per the new url docs from protx but they fail (just trying to add my bit really). I've commented them out below as the old ones still work ... It's not another typo from me is it ???
Line 35 ish
switch ($_GET['process']) {
case 'release':
$data = 'VPSProtocol=2.22' .
'&TxType=RELEASE' .
'&Vendor=' . MODULE_PAYMENT_PROTX_DIRECT_VENDOR_NAME .
'&VendorTxCode=' . $transaction['vendortxcode'] .
'&VPSTxID=' . $transaction['vpstxid'] .
'&SecurityKey=' . $transaction['securitykey'] .
'&TxAuthNo=' . $transaction['txauthno'];
$service = 'VendorReleaseTX';
//$service = 'release.vsp'; new path ending as per protx
break;
case 'refund':
require_once(DIR_WS_CLASSES . 'order.php');
$order = new Order($oID);
$uid = tep_create_random_value(32, 'digits');
$VendorTxCode = $oID . '-'. $uid;
$data = 'VPSProtocol=2.22' .
'&TxType=REFUND' .
'&Vendor=' . MODULE_PAYMENT_PROTX_DIRECT_VENDOR_NAME .
'&VendorTxCode=' . $VendorTxCode .
'&Amount=' . $_GET['value'] .
'&Currency=' . $order->info['currency'] .
'&Description=' . urlencode('Refund via osC Admin Area') .
'&RelatedVPSTxId=' . $transaction['vpstxid'] .
'&RelatedVendorTxCode=' . $transaction['vendortxcode'] .
'&RelatedSecurityKey=' . $transaction['securitykey'] .
'&RelatedTxAuthNo=' . $transaction['txauthno'];
$service = 'VendorRefundTX';
/ /$service = 'refund.vsp'; new path ending as per protx
break;
case 'authorise':
$uid = tep_create_random_value(32, 'digits');
$VendorTxCode = $oID . '-'. $uid;
$data = 'VPSProtocol=2.22' .
'&TxType=AUTHORISE' .
'&Vendor=' . MODULE_PAYMENT_PROTX_DIRECT_VENDOR_NAME .
'&VendorTxCode=' . $VendorTxCode .
'&Amount=' . $_GET['value'] .
'&Description=' . urlencode('Authorise via osC admin area') .
'&RelatedVPSTxId=' . $transaction['vpstxid'] .
'&RelatedVendorTxCode=' . $transaction['vendortxcode'] .
'&RelatedSecurityKey='. $transaction['securitykey'];
$service = 'VendorAuthoriseTX';
//$service = 'authorise.vsp'; new path ending as per protx
break;
case 'cancel':
$data = 'VPSProtocol=2.22' .
'&TxType=CANCEL' .
'&Vendor=' . MODULE_PAYMENT_PROTX_DIRECT_VENDOR_NAME .
'&VendorTxCode=' . $transaction['vendortxcode'] .
'&VPSTxId=' . $transaction['vpstxid'] .
'&SecurityKey=' . $transaction['securitykey'];
$service='VendorCancelTX';
//$service='cancel.vsp'; new path ending as per protx
break;
case 'abort':
$data = 'VPSProtocol=2.22' .
'&TxType=ABORT' .
'&Vendor=' . MODULE_PAYMENT_PROTX_DIRECT_VENDOR_NAME .
'&VendorTxCode=' . $transaction['vendortxcode'] .
'&VPSTxId=' . $transaction['vpstxid'] .
'&SecurityKey=' . $transaction['securitykey'] .
'&TxAuthNo=' . $transaction['txauthno'];
$service='VendorAbortTX';
//$service='abort.vsp'; new path ending as per protx
break;
case 'void':
$data = 'VPSProtocol=2.22' .
'&TxType=VOID' .
'&Vendor=' . MODULE_PAYMENT_PROTX_DIRECT_VENDOR_NAME .
'&VendorTxCode=' . $transaction['vendortxcode'] .
'&VPSTxId=' . $transaction['vpstxid'] .
'&SecurityKey=' . $transaction['securitykey'] .
'&TxAuthNo=' . $transaction['txauthno'];
$service='VendorVoidTX';
//$service='void.vsp'; new path ending as per protx
break;
}
unset($response);
if (MODULE_PAYMENT_PROTX_DIRECT_TRANSACTION_MODE == 'Test') {
$url = 'https://ukvpstest.protx.com/vps200/dotransaction.dll?Service='.$service;
} elseif (MODULE_PAYMENT_PROTX_DIRECT_TRANSACTION_MODE == 'Server IP Test') {
$url = 'https://ukvpstest.protx.com/showpost/showpost.asp';
} elseif (MODULE_PAYMENT_PROTX_DIRECT_TRANSACTION_MODE == 'Simulator') {
$url = 'https://ukvpstest.protx.com/VSPSimulator/VSPServerGateway.asp?Service='.$service;
} else {
$url = 'https://ukvps.protx.com/vps200/dotransaction.dll?Service='.$service;
}
// THIS SET FAILS WITH THE NEW PATHS UNCOMMENTED ABOVE
// if (MODULE_PAYMENT_PROTX_DIRECT_TRANSACTION_MODE == 'Test') {
// $url = 'https://ukvpstest.protx.com/vpsgateway/service/'.$service;
// } elseif (MODULE_PAYMENT_PROTX_DIRECT_TRANSACTION_MODE == 'Server IP Test') {
// $url = 'https://ukvpstest.protx.com/showpost/showpost.asp';
// } elseif (MODULE_PAYMENT_PROTX_DIRECT_TRANSACTION_MODE == 'Simulator') {
// $url = 'https://ukvpstest.protx.com/VSPSimulator/VSPServerGateway.asp?Service='.$service; --- this needs changing too
// } else {
// $url = 'https://ukvps.protx.com/vpsgateway/service/'.$service;
// }
James