tc/paypal_adaptive — Issue #25: Response incorrectly recognized as successful
Author: nbibler
Created: 2011-11-20 19:29:31+00:00
State: open

Using a PayPal Preapproval key with this library, I've come across a response where this library incorrectly recognizes a payment as being successful:

```javascript
{"responseEnvelope":{"timestamp":"2011-11-20T09:33:51.178-08:00","ack":"Success","correlationId":"XXXXX","build":"2279004"},"payKey":"AP-XXXXXXXXXXXXXXXXX","paymentExecStatus":"ERROR","payErrorList":{"payError":[{"receiver":{"amount":"25.0","email":"email@email.com"},"error":{"errorId":"580036","domain":"PLATFORM","severity":"Error","category":"Application","message":"This transaction cannot be processed. Please enter a valid credit card number and type"}}]}}
```

Currently, this library simply looks to the `ack` value to determine whether or not the response is successful. But, as you can see here, that is not always the case, as it is obviously an error response.