Jump to content

New Nochex Merchant account settings


Guest argentice

Recommended Posts

Guest argentice

You need to change this file.. ./modules/gateway/NOCHEX/transfer.inc.php

Find "function fixedVars()" and change it to the following..

function fixedVars(){

	

	global $module, $basket, $ccUserData, $cart_order_id, $config, $GLOBALS;

	$postaddress = $ccUserData[0]['add_1'];

	if ("$ccUserData[0]['add_2']" != "" )

		{

			$postaddress .= ", ".$ccUserData[0]['add_2'];

		}

	if ("$ccUserData[0]['town']" != "" )

		{

			$postaddress .= ", ".$ccUserData[0]['town'];

		}

	if ("$ccUserData[0]['county']" != "" )

		{

			$postaddress .= ", ".$ccUserData[0]['county'];

		}

	

	$hiddenVars = "<input type='hidden' name='cart_order_id' value='".$cart_order_id."'>

			<input type='hidden' name='amount' value='".$basket['grandTotal']."'>   

			<input type='hidden' name='billing_fullname' value='".$ccUserData[0]['firstName']." ".$ccUserData[0]['lastName']."'>   

			<input type='hidden' name='billing_address' value='".$postaddress."'>   

			<input type='hidden' name='billing_postcode' value='".$ccUserData[0]['postcode']."'>   

			<input type='hidden' name='merchant_id' value='YOURMERCHANTACCOUNTID'>

			<input type='hidden' name='description' value='Online order from YOUR COMPANY'>

			<input type='hidden' name='order_id' value='".$cart_order_id."'>";

				

			return $hiddenVars;

	

}

And change the formaction at the bottom of the file to.....

$formAction = "https://secure.nochex.com/";

Hope this helps someone.

Link to comment
Share on other sites

Guest EverythingWeb

Yeah what is this for please?

Eh? This is for the Nochex configuration in CubeCart.

The Dev store is the version of CubeCart currently in development.

Link to comment
Share on other sites

Guest argentice

And this is for? any nochex account or just specifically the merchant account.

As Nochex offer 3 different account types.

The clue is in the thread title :)

"New Nochex Merchant account settings"

Nochex have released a new "Merchant" account recently, this modification is for this account only. It does not apply to the other accounts.

Also, be aware, you might need a "Thank you" page set up in the Nochex control panel and the new merchant account does not pass back any variables.

Link to comment
Share on other sites

  • 3 months later...

And this is for? any nochex account or just specifically the merchant account.

As Nochex offer 3 different account types.

The clue is in the thread title :)

"New Nochex Merchant account settings"

Nochex have released a new "Merchant" account recently, this modification is for this account only. It does not apply to the other accounts.

Also, be aware, you might need a "Thank you" page set up in the Nochex control panel and the new merchant account does not pass back any variables.

This is great!

Thanks for posting it.

Do you know the way for cubecart to automatically send the 'new order' email to both the store owner and customer when using Nochex merchant account?

Many thanks

Sharon xx

Link to comment
Share on other sites

  • 4 weeks later...
Guest Tony_B

Also, be aware, you might need a "Thank you" page set up in the Nochex control panel and the new merchant account does not pass back any variables.

Sorry to say you are totaly wrong. The new merchant account passes back variables as does the older, existing extra account. Cubecart has totally failed to implement anything to make use of this but it's been available for years now and continues with the new merchant account.

This is great!

Thanks for posting it.

Do you know the way for cubecart to automatically send the 'new order' email to both the store owner and customer when using Nochex merchant account?

Many thanks

Sharon xx

The code needs to be hacked quite heavily to do so as nobody at cubecart can be bothered to implement nochex properly. I've managed to get mine working by copying and hacking the paypal modules. However, my PHP isn't great and my solution far from elegant so sadly I won't share or publish it unless/until I get it 100% right and secure.

The solution above while handy still does not make Nochex useable in cubecart IMHO for a busy site.

Link to comment
Share on other sites

  • 3 weeks later...

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...