Update qbo_controller.rb

This commit is contained in:
2016-08-01 21:34:14 -04:00
committed by GitHub
parent 4ff2b2bdc6
commit 06344b6498

View File

@@ -64,7 +64,10 @@ class QboController < ApplicationController
# Quickbooks Webhook Callback
def qbo_webhook
if request.headers['Content-Type'] == 'application/json'
#TODO check the payload
signature = request.headers['intuit-signature']
if request.headers['content-type'] == 'application/json'
data = JSON.parse(request.body.read)
else
# application/x-www-form-urlencoded