我正在使用PaypalAdaptive。它正確發送ipn_notification。 ipnNotification操作方法如下 -無法在rails中驗證CSRF令牌的真實性
def ipn_notification
ipn = PaypalAdaptive::IpnNotification.new
ipn.send_back(request.raw_post.to_json)
print "=====================request.raw_post#{request.raw_post}=============="
if ipn.verified?
PaymentMailer.notify_unknown(request.raw_post).deliver
else
logger.info "IT DIDNT WORK"
end
render :nothing => true
end
但它返回錯誤
WARNING: Can't verify CSRF token authenticity rails
對於這個問題的任何幫助。
不是回答嗎? – apneadiving 2012-09-27 15:25:11
它的工作表示感謝。 – vajapravin 2012-11-19 06:22:22
-1在解釋時效果更好 – apneadiving 2013-03-21 06:56:45