Tony 3 Posted February 21 Share Posted February 21 Does anyone know if there are a test card for PayPal Commerce that I could use to test the payment flow from basket to checkout? I know I could use my actual card but there will be fair bit of testing involved and I don't really fancy doing lots of payments & refunds which might flag up PayPal. Thanks. Quote Link to post Share on other sites
Al Brookbanks 201 Posted February 21 Share Posted February 21 Hi Tony, To put PayPal Commerce in Sandbox mode you'll need to disconnect your account via its settings page. You then need to edit two files; modules/plugins/paypal_commerce/admin/index.inc.php Change: define('SANDBOX', false); to; define('SANDBOX', true); modules/plugins/paypal_commerce/paypal.class.php Change: private $_sandbox = false; // Set to false for live!! to; private $_sandbox = true; // Set to false for live!! You can then reconnect using a developer Sandbox account from https://developer.paypal.com and test with their test or live cards without being charged. 1 Quote Link to post Share on other sites
Tony 3 Posted February 21 Author Share Posted February 21 Thanks for that. Guess it's not suitable for doing it on the live server! I will clone the shop & database and set up a test website - thanks for explaining, that's helpful. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.