leeand00
leeand00

Reputation: 26402

Stubbing Out a PayPal Account?

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

Answers (1)

Chris Baker
Chris Baker

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

Related Questions