Reputation: 26402
Is there tool for testing an application that uses the PayPal account API without actually using the live PayPal account and API?
Sort of like Unit Testing the application (doesn't actually transfer the money but the application calling the API thinks it does anyway)
(I'm using PHP and Wordpress)
Upvotes: 0
Views: 139
Reputation: 50612
Use the sandbox API. In the developer center, you are able to generate a testing credit card number to use with the sandbox.
In the normal API, your "endpoint" looks something like this:
$API_ENDPOINT = 'https://api.paypal.com/nvp';
For the sandbox, you have:
$API_Endpoint = 'https://api-3t.sandbox.paypal.com/nvp';
Upvotes: 2