Jump to content

PayPal Commerce - Test cards


Tony

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.

Thanks.

Link to comment
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;

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...