From 8b02a80904f4caad39d4e254367f344a573ffcc7 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 28 Jul 2016 01:04:00 -0400 Subject: [PATCH] Webhooks --- app/controllers/qbo_controller.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/controllers/qbo_controller.rb b/app/controllers/qbo_controller.rb index 5dfe293..3f0cd48 100644 --- a/app/controllers/qbo_controller.rb +++ b/app/controllers/qbo_controller.rb @@ -60,6 +60,20 @@ class QboController < ApplicationController end end + + # Quickbooks Webhook Callback + def qbo_webhook + + # If the body contains the event notifications parameter... + if params[:eventNotifications].present? + # Process the entities + #TODO stuff + end + + # The webhook doesn't require a response but let's make sure + # we don't send anything + render :nothing => true + end # # Synchronizes the QboCustomer table with QBO