Permalink
Browse files

Rescue Signature validation errors

  • Loading branch information...
1 parent 176a6a5 commit 22836172742c7b5e385af008f84b9a8b6e03b757 @titanous titanous committed Sep 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/simplepay/helpers/notification_helper.rb
@@ -44,7 +44,7 @@ def valid_simplepay_request?(endpoint, query)
query = CGI.escape(query)
url_and_query = url + "/?Action=VerifySignature&Version=2008-09-17&UrlEndPoint=#{endpoint}&HttpParameters=#{query}"
- result = open(url_and_query)
+ result = open(url_and_query) rescue false
result.read =~ /Success/ ? true : false
end

0 comments on commit 2283617

Please sign in to comment.