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.

CommentFileSizeAuthor
paypal.patch992 bytesmichaelk

Comments

jerdavis’s picture

Status: Needs review » Fixed

Committed, Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Fix type