Mock objects for stubbing out Paypal - anyone have any???


Just wondering if anyone has already developed a mocking approach to stub out the Paypal interface so that one can test on an internal PC which doesn’t provide a means for PayPal to callback to your webserver? (
i.e. once the app is deployed to the hosting provider it would then work as PayPal could then hit the application with the specified URL).

Anyone already solved this? What would be a good framework/means to stub it out?


Though it does not explicitly answer your question you should checkout
Active Merchant.

It has paypal support, but perhaps not exactly how you describe.

Should be a good point of reference anyway.

This might be worth a look -