Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Handle request exceptions gracefully #46
I've added a rescue block around the post call to Paypal. The idea is to be able to handle server errors (like when sandbox goes down) gracefully.
Let me know if this is ok or would you like me to refine the error handling.
I was thinking trying to duplicate the Paypal's complete response structure or at least some basic fields like responseEvelope.ack so people can check if there was a problem with the request.