我正在使用 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
对这个问题有任何帮助。