Simulate insufficient balance error in PayPal

8

I'm developing an Android application in which I need to integrate PayPal into the buying part, I'm using the PayPal Sandbox to test, it seemed to be working perfectly. I create my personal account and the business account and the fakes transactions are working because I am checking the PayPal Developer website.

In developing the error-handling part the first error I intended to deal with was the issue of insufficient funds ... but the problem is that even my personal test account being with funds of $ 0.00 transactions < in> fakes continue to be confirmed and the money is passed on.

What can I do wrong or what can I do to simulate these errors on Android?

    
asked by anonymous 07.03.2014 / 21:20

1 answer

1

Hello, an alternative would be to write unit tests for your application, so you would create a "mock" for your interface class with PayPal and there you would simulate the transactions. Here's a video explaining a bit about TDD: link

Good luck

    
21.03.2014 / 02:34