Tony Posted February 21, 2021 Share Posted February 21, 2021 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. Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 21, 2021 Share Posted February 21, 2021 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. Link to comment Share on other sites More sharing options...
Tony Posted February 21, 2021 Author Share Posted February 21, 2021 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.