我正在使用PaypalAdaptive。它能够正确地发送ipn_notification。ipnNotification操作方法如下 -
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
任何关于这个问题的帮助。