lindsd1111 Posted August 4, 2014 Share Posted August 4, 2014 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 More sharing options...
lindsd1111 Posted August 4, 2014 Author Share Posted August 4, 2014 Note: The config.inc.php still has this original setting: if (!defined('LIVE')) DEFINE('LIVE', false); Link to comment Share on other sites More sharing options...
lindsd1111 Posted August 5, 2014 Author Share Posted August 5, 2014 Resolved. Short explanation: The PayPal advice above was simply wrong. Long explanation: See posting: "Bizarre work-around to create PayPal sandbox button" Link to comment Share on other sites More sharing options...
Larry Posted August 6, 2014 Share Posted August 6, 2014 Sorry I wasn't able to step in here and advise. But big kudos for figuring it out and thanks for sharing the solution! Link to comment Share on other sites More sharing options...
Recommended Posts