From 93db4472391563f5aa80a0d1fd10fcd88aea3f54 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sat, 4 Jan 2020 12:29:54 -0500 Subject: [PATCH] Update qbo_controller.rb --- app/controllers/qbo_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/qbo_controller.rb b/app/controllers/qbo_controller.rb index 0133e9c..b7b6f3f 100644 --- a/app/controllers/qbo_controller.rb +++ b/app/controllers/qbo_controller.rb @@ -46,7 +46,7 @@ class QboController < ApplicationController def oauth_callback if params[:state].present? # use the state value to retrieve from your backend any information you need to identify the customer in your system - redirect_uri = quickbooks_oauth_callback_url + redirect_uri = qbo_oauth_callback_url if resp = oauth2_client.auth_code.get_token(params[:code], redirect_uri: redirect_uri) # save your tokens here. For example: # quickbooks_credentials.update_attributes(access_token: resp.token, refresh_token: resp.refresh_token,