Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Nochex Problems


goldberg

Recommended Posts

Posted

Hi, site all set up www.goldberg-mods.co.uk . I accept payments by Paypal and Nochex. Paypal is fine, shows up as an order o/s in the admin section etc... However when customers send via Nochex it does not update on the site nor on the customers account page? I still receive a message from Nochex to confirm money is received but the site just not updating.

 

Any one know a fix? I'm using 2.2

 

Thanks.

 

M Brown

Posted

Well with the new checkout code/CVS that isnt a problem at the moment, as you do not even get that far, it just bombs with msg below:

 

Syntax error (invalid amount): 23, use the format: -



xx.xx (eg 10.99)

 

John

Posted

WOOOOOOHOOOOO, I was trauling through the code in frustation, and thought it must be to do with decimal places as thats whats is complaining about, so having looked at the line in

 

/catalog/includes/modules/payment/nochex.php :

 

 tep_draw_hidden_field('amount', number_format($order->info['total'] *

$currencies->currencies['GBP']['value'] , $currencies->currencies['GBP']['decimal_points'])) .

 

I backed tracked 'decimal_points' and could find didly sqaut, but what I did find in the currency.php was 'decimal_places' ... Couldnt be that easy I thought, so I changed the line in nochex.php to:

 

 tep_draw_hidden_field('amount', number_format($order->info['total'] *

$currencies->currencies['GBP']['value'] , $currencies->currencies['GBP']['decimal_places'])) .

 

And waddaya know, it worked :)...

 

I'm not sure how we report this ? As a bug!? But anyone having problems, heres your fix :P

 

John

Posted
I'm not sure how we report this ? As a bug!? But anyone having problems, heres your fix

 

No need to report it as a bug it has already been fixed in CVS :)

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Posted

dagnamit :roll: , trouble is I'm not a CVS d/l junky... Are these things reported anywhere as being fixed?

 

John

Posted
ps , so looking at the the paypal module having 'points' in aswell, does that need changing!?

 

Beat you to it :)

 

http://www.geocrawler.com/lists/3/SourceFo...23/50/10067554/

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...