Jump to content

PayPal Commerce - Test cards

Recommended Posts

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.


Link to post
Share on other sites

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;



define('SANDBOX', false);


define('SANDBOX', true);



private $_sandbox = false; // Set to false for live!!


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. 


  • Like 1
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.

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