Support

Home Forums Event Espresso Premium Quickbooks Payment Gateway and oAuth 2.0

Quickbooks Payment Gateway and oAuth 2.0

Posted: December 13, 2017 at 3:47 pm


db2112

December 13, 2017 at 3:47 pm

Hello. I realized after testing 1.0a in sandbox, and it working and then going to production and it not working, that QB now only supports oauth 2.0. Maybe I’m completely missing it, but there is no client ID or client secret on the keys page of the Intuit developer site, just the usual consumer key and consumer secret. If I just switch to oauth 2.0, leaving the existing 1.0a info in the WP plugin, save and connect I get a, “We’re sorry! We’re experiencing some problems. Please try again later.” ANy help would be appreciated. Thanks


Josh

  • Support Staff

December 13, 2017 at 4:10 pm

Hi db2112,

You might need to create a new app within your Intuit developer account. Apps that use oAuth 1.0 will have OAuth Consumer Key and OAuth Consumer Secret fields. Apps that use oAuth 2.0 will have Client ID and Client Secret fields.

Also important: when you set up your oAuth 2.0 app, just a bit after the Client ID and Client Secret fields, you’ll see a section for setting Redirect URIs. There you’ll add a URL and copy and paste your website URL into the Redirect URI field. Production URIs must use https.


db2112

December 13, 2017 at 4:21 pm

Thanks for the info. That’s where I’m having the issue. I have created several new apps and none of them ask if this is a 1.0a or 2.0 app. The info bar on the developer site says “This app integrates with OAuth 1.0a and OpenID 2.0” but there is no 2.0 settings that I can find. Maybe intuit does not support at the moment? On the same info bar it states, “We are actively working on a migration path for you to implement OAuth 2.0 and OpenID Connect and will notify you when it is available.”

Here is what I do under dev:
Create new App >> Just start coding and click select API’s >> Quickbooks API select accounting and payments >> click create app.


Josh

  • Support Staff

December 13, 2017 at 4:44 pm

You should be able to use oAuth 1.0 then, and if Quickbooks is no longer allowing production use of oAuth 1.0, then you can contact them to upgrade your account.


db2112

December 13, 2017 at 5:30 pm

I read this thread, and it looks like he was able to get it working with 2.0
https://eventespresso.com/topic/quickbooks-payment-gateway-support-for-oauth-2-0/


Tony

  • Support Staff

December 14, 2017 at 2:42 am

Hi there,

First, can I ask where you’ve seen this:

I realized after testing 1.0a in sandbox, and it working and then going to production and it not working, that QB now only supports oauth 2.0.

What makes you believe QuickBooks will only work with oAuth 2.0?

As far as I am aware, they use oAuth 2.0 for new accounts but existing accounts can continue to use oAuth1.0 without a problem.

I read this thread, and it looks like he was able to get it working with 2.0
https://eventespresso.com/topic/quickbooks-payment-gateway-support-for-oauth-2-0/

That user has an account that uses oAuth2.0 so he must use that setup.

One problem with Quickbooks is they changed their integration and it depends on when you created your account which type you will have (annoying but that’s the way it goes)

If this is a new account you’ll be using oAuth 2.0 and when looking within your intuit account and grabbing the key info it will look like this – http://take.ms/JvMLK

If your keys section looks like that then you select oAuth 2.0 in the quickbooks payment method and input the keys in their relevant sections – http://take.ms/GaikJ

If you have an older account your keys in intuit look like this – http://take.ms/uaOxW

If so you select oAuth 1.0a in the Quickbooks payment method and input the details were needed – http://take.ms/tEUIr

So, which account type do you have? From this:

Maybe I’m completely missing it, but there is no client ID or client secret on the keys page of the Intuit developer site, just the usual consumer key and consumer secret.

It sounds like your account is oAuth1.0 so you would use that in the payment method settings but can you confirm, please?

Also, when ‘going to production’ as you switching out your keys for the ‘Production keys’ in your intuit account, or just disabling debug mode in the payment method?


db2112

December 14, 2017 at 8:10 am

Hey Tony,

To answer your first question, the payment failure message I received was after I added the oauth 1.0a production keys and turned off debug. I tried to process a 1.00 transaction event this morning againand received the following message. http://take.ms/EeUId

After looking at the logs, it looks like there is a token issue. The one the system is using is not the one associated with the production key. http://take.ms/AiQt10 That token does not match the QB app token.

Based on those screen shots above, I have the old account. http://take.ms/rFBVE I did swap out the dev keys for production keys as well.

Thanks for the help.


Josh

  • Support Staff

December 14, 2017 at 8:47 am

Did you disconnect the app from your website side before removing the sandbox keys? It sounds like the sandbox app is still connected to your website.


db2112

December 14, 2017 at 9:40 am

I don’t recall exactly. It’s possible. Is there any way to update with the new/correct token assuming that is the issue? None of the QB apps have that specific app token, however.


Josh

  • Support Staff

December 14, 2017 at 9:51 am

You can try reconnecting with the sandbox API keys, then disconnect, then after you disconnect switch the settings to use production keys + turn off debug mode.


db2112

December 14, 2017 at 10:00 am

I created a new dev app and tried it again and now I am receiving the following message

http://take.ms/DNF9F


db2112

December 14, 2017 at 10:09 am

I tried what you mentioned by adding sandbox keys saving then disconnecting and adding dev keys + debug off and I am receiving the same issue but it’s a different token this time

http://take.ms/Z59n5


Josh

  • Support Staff

December 14, 2017 at 10:12 am

Can you open a support ticket with Intuit and include the error code from that screenshot? They’ve had that same error reported before and it was resolved, but the support topic did not explain how they resolved it:

https://help.developer.intuit.com/s/question/0D5G000004Dk7VfKAJ/authentication-error-when-submitting-a-charge-to-payments-api


db2112

December 14, 2017 at 12:10 pm

That is no longer an issue it seems. I’m back to the token issue per last screen shot. http://take.ms/Z59n5


Josh

  • Support Staff

December 15, 2017 at 12:26 pm

PMT-6000 is a QuickBooks system error. Have you contacted Intuit about the error?


db2112

December 18, 2017 at 5:44 pm

Would this be a QB issue?

https://help.developer.intuit.com/s/question/0D5G000004Dk6biKAB/why-am-i-getting-a-pmt6000-error-code-when-attempting-to-create-a-payment-in-the-sandbox


db2112

December 18, 2017 at 5:46 pm

Is this still a QB issue?

https://help.developer.intuit.com/s/question/0D5G000004Dk6sBKAR/i-am-receiving-a-400-bad-requestcodepmt6000typesystemerror-when-i-try-to-createfromtoken-could-someone-help


db2112

December 19, 2017 at 7:47 am

This issue references sandbox mode but I’m using production

https://help.developer.intuit.com/s/question/0D5G000004Dk6sBKAR/i-am-receiving-a-400-bad-requestcodepmt6000typesystemerror-when-i-try-to-createfromtoken-could-someone-help


db2112

December 19, 2017 at 7:49 am

They are no help so far and referenced this article: https://help.developer.intuit.com/s/question/0D5G000004Dk6sBKAR/i-am-receiving-a-400-bad-requestcodepmt6000typesystemerror-when-i-try-to-createfromtoken-could-someone-help


db2112

December 19, 2017 at 7:50 am

test


db2112

December 19, 2017 at 7:52 am

I contacted QB and they referenced their forums.
help.developer.intuit.com/s/question/0D5G000004Dk6sBKAR/i-am-receiving-a-400-bad-requestcodepmt6000typesystemerror-when-i-try-to-createfromtoken-could-someone-help


db2112

December 19, 2017 at 7:53 am

I can’t seem to post urls. In any case, QG referenced me to their forum. However, the issues I’ve found related to PMT-6000 are sandbox issues.


Josh

  • Support Staff

December 19, 2017 at 8:25 am

Those are Quickbooks systems errors. If their support techs can only give you links to unresolved support topics maybe it will help to escalate the ticket on their end.

The support post ‘Quickbooks Payment Gateway and oAuth 2.0’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso