app/controllers/wepay/ipn_controller.rb in wepay-rails-2.1.0 vs app/controllers/wepay/ipn_controller.rb in wepay-rails-2.2.0

- old
+ new

@@ -1,16 +1,16 @@ class Wepay::IpnController < Wepay::ApplicationController def create - record = WepayCheckoutRecord.find_by_checkout_id(params[:checkout_id]) + record = WepayCheckoutRecord.find_by_checkout_id_and_security_token(params[:checkout_id],params[:security_token]) if record.present? wepay_gateway = WepayRails::Payments::Gateway.new checkout = wepay_gateway.lookup_checkout(record.checkout_id) record.update_attributes(checkout) render :text => "ok" else - raise StandardError.new("Wepay IPN: No record found for checkout_id #{params[:checkout_id]}") + raise StandardError.new("Wepay IPN: No record found for checkout_id #{params[:checkout_id]} and security_token #{params[:security_token]}") end end end \ No newline at end of file