Guest nizam Posted September 17, 2008 Share Posted September 17, 2008 Hi! I was using Cubecart Version 3.18 for my online shop. I had created a new Payment gateway called enets. It worked fine for Cubecart Version 3. Now I have upgraded to version 4.2.3 This same Enets payment gateway now does not work at all. I get an error of 500 (Server error or something wrong with the script) I have spent a lot of time editing but I still cannot get it to work. Is there any change in the Gateway payment structure from Version 3 to version 4. If so could some one please advise as to what is different. Thanks PS: have a look at the code:- This is the transfer.inc.php file <?php function repeatVars() { return false; } function fixedVars() { global $module, $orderSum, $config; $hiddenVars = "<input type='hidden' name='instId' value='".$module['acNo']."' /> <input type='hidden' name='cartId' value='".$orderSum['cart_order_id']."' /> <input type='hidden' name='amount' value='".$amount."' /> <input type='hidden' name='txnRef' value='".$cart_order_id."' /> <input type='hidden' name='mid' value='xxx' /> <input type='hidden' name='umapiType' value='lite' />"; if ($module['testMode']>0) { $hiddenVars .= "<input type='hidden' name='testMode' value='".$module['testMode']."' />"; } return $hiddenVars; } /////////////////////////// // Other Vars //////// if($module['testMode']>0) { $formAction = "https://test.enets.sg/enets2/enps.do"; } else { $formAction = "https://www.enets.sg/enets2/enps.do"; } $formMethod = "post"; $formTarget = "_self"; $transfer = "auto"; ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.