Nie można zweryfikować autentyczności tokena CSRF w szynach
Używam PaypalAdaptive. Wysyła poprawnie ipn_notification. Metoda akcji ipnNotification jest następująca -
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
ale to powracający błąd
WARNING: Can't verify CSRF token authenticity rails
Jakaś pomoc dla tego problemu.