Currently any error that happens gives you the incredibly unhelpful error message of: "Error processing payment: PayPal gateway returned'Failure'
This is not helpful at all and considering the response from PayPal provides a bunch of extra error info, that info should be provided in the error message.
There is also a typo in the drupal_set_message line that doesn't have a space after "returned" in the message above.
I have attached a patch that improve the error message to include the error code and long error message explaining what the actual issue is. This should help people a lot when debugging API setup issues.
| Comment | File | Size | Author |
|---|---|---|---|
| paypal.patch | 992 bytes | michaelk |
Comments
Comment #1
jerdavisCommitted, Thanks!
Comment #2.0
(not verified) commentedFix type