Jump to content
Larry Ullman's Book Forums

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!  

Share this post

Link to post
Share on other sites

Sorry I wasn't able to step in here and advise. But big kudos for figuring it out and thanks for sharing the solution!

Share this post

Link to post
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.
Note: Your post will require moderator approval before it will be visible.

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