Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

major question on register globals and paypal


damon2003

Recommended Posts

Posted

Hi,

I have set up oscommerce on a fasthosts server with paypal as the payment method.

The register_globals is turned off by default.

 

The problem is, is that when the user gets to page just before they are transferred to the paypal screen, the value of the items they are buying is not being stored in the hidden field. So there is no amount value being passed to the paypal servers.

 

Is this because register_globals is turned off? if this is the case, is there any way round this problem, or is it a case of moving to a host that has register_globals turned on?

 

thanks a lot for a any info

 

aaaaaa

Posted

will the host enable register globals? if not you would be better off moving to another host, as this can cause a headache.

Posted

Hi,

no i asked them and they said no, as they think its a security risk. I think its possible to have them enabled on a dedicated server, but they are expensive.

 

Anyway back to my query, the amount value is not being stored in any hidden fields, so is not getting passed to paypal. Is this due to the register_globals issue?

 

thanks

Posted

You can turn register globals on for yourself. Add a line in your .htaccess file as follows:

php_flag register_globals on

 

This will turn it on only for the directories that the .htaccess file applies to, which is the best way to deal with this. Register globlas should not be on by your host.

 

Does this affect paypal? Not sure, but it probably does since I think the basket has some global values assigned to it. Try it and see if it fixes the problem.

 

Dan

Dan Stevens

Posted

Hi,

thanks a lot for the info,

 

theres been a mistake though. I recontacted fasthosts and now they are telling me that register_globals are turned on.

 

So why is the amount not being stored in the hidden fields@

 

thanks a lot for any anwers

Archived

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

×
×
  • Create New...