# File 'lib/paypal/ipn.rb', line 3defself.endpoint_endpoint_=URI.parsePaypal.endpoint_endpoint_.query={:cmd=>'_notify-validate'}.to_query_endpoint_.to_send
.verify!(raw_post) ⇒ Object
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/paypal/ipn.rb', line 11defself.verify!(raw_post)response=RestClient.post(endpoint,raw_post)caseresponse.bodywhen'VERIFIED'trueelseraiseException::APIError.new(response.body)endend