Jump to content

Enets Payment gateway for Singapore


Guest nizam

Recommended Posts

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";

?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...