function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Alta MontclairAlta Montclair 

Salesforce Quickbooks integration. It seems like it is a problem with callbackURL back to Salesforce

I am working on Salesforce Quickbooks Online integration and got a problem with User Authorization Step (//appcenter.intuit.com/Connect/Begin).
I got request token and successfully redirected to Intuit Authorization page (//appcenter.intuit.com/Connect/Authorize?oauth_token=qyprdH6teuEEhB6qF4M0ZjUWwjp5W2RHqKcVLObX9ddicmAj&realmId=193514473407059).
But when I click "Authorize" button, I am getting "500 – Internal server error" (//appcenter.intuit.com/Connect/Authorize).
It seems like it is a problem with callbackURL. I tried to change it to public and very simple one without any success. Every time I am getting the same error.
Appreciate any help!
Here is my debug log:
Get Token Request Step:
08:22:43.0 (25244362)|CALLOUT_REQUEST|[81]|System.HttpRequest[Endpoint=https://oauth.intuit.com/oauth/v1/get_request_token?oauth_callback=ListofPlanSponsors&oauth_consumer_key=qyprdFEWD4HM1x7AxqgJvJreXCfHsr&oauth_nonce=-3599673740950647704&oauth_signature=aVB9ABxsvPL3jPwHoYooMndTry0=&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1484842963&oauth_version=1.0, Method=GET] 08:22:43.0 (575621572)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:320 08:22:43.0 (575782268)|CALLOUT_RESPONSE|[81]|System.HttpResponse[Status=OK, StatusCode=200]
Response from request token request: 08:22:43.0 (807468465)|USER_DEBUG|[111]|DEBUG|Success in getting a request token! HTTP Code = 200. Message: OK. Response Body: oauth_token_secret=nyQ6F91oz3Lqs9ZCUUxmDmbbc6TlpPo3OGnDMhZa&oauth_token=qyprdPC4H0eOy6cB6it6TtgE4nN0lczyDQf9u8siAo91ygnZ&oauth_callback_confirmed=true
User Authorization Step:
08:22:43.0 (807671128)|USER_DEBUG|[21]|DEBUG|https://appcenter.intuit.com/Connect/Begin?oauth_token=qyprdPC4H0eOy6cB6it6TtgE4nN0lczyDQf9u8siAo91ygnZ&oauth_consumer_key=qyprdFEWD4HM1x7AxqgJvJreXCfHsr
After I click Authorize button, I am getting the 500 – Internal server error