Jump to content
Larry Ullman's Book Forums

Paypal Says To Switch Localhost To "test Mode"?!?


Recommended Posts

I am trying to test a subscription purchase using the PayPal sandbox button as described in Chapter Six with no luck.  

 

I just spent an hour with PayPay tech support and they said that the problem is that my localhost is set to "live" and not "test" and therefore the PayPal button will not work with a sandbox.

 

I'm using XAMPP on my MacBook Pro.

 

Steps I've taken:

 - Created sandbox account

 - Logged into sandbox

 - Created button in sandbox (note: the button code does NOT contain any reference to "sandbox"; I expected that it would based on Chapter 6)

 - Pasted button HTML into register.php

 - Logged in to my localhost site

 - Pressed the button

 - I am NOT taken to a sandbox PayPal location; I am taken to www.paypal.com/cgi-bin/webscr

 

PayPal tech support says that I need to go into my localhost settings and change something from "live mode" to "test mode".  

 

I assume I'm missing something stupid...

 

Help or advice? THANKS!  

Link to comment
Share on other sites

 Share

×
×
  • Create New...