Getting 401 Error when trying to complete transaction
Hello,
I'm feeling a little lost on something and looking for help.
- I successfully create SKY API Payments app for collecting payments.
- I Connected SKY App to our Raisers Edge NXT Environments
- I walked through Blackbaud Checkout Support Docs
- I do get the Blackbaud Payment Window to pop up like this image below:

- I also get my data to autofill the details on the page so my Javascript is posting to the Blackbaud Checkout fine.
- I even get a success checkmark like this image below, after I complete the credit card form

- After the Success Checkmark screen goes away, I am left with an Error message on my screen (see below) and my console says: 401 (Unauthorized)

- So I guess my questions are:
- Where do I look first to ensure that I'm connected properly? Perhaps I'm not connecting to oAuth correctly?
- Anyone have any suggestions for which articles to look up? I got this far but can't get the money to come off my credit card and be a successful transaction.
I am checking on this and I don't know if I'm messing up the Authorization keys and not properly connecting via oAuth or if it's even needed. I
Sorry if that's not enough info.
Thanks,
Dwayne
Comments
-
Hi Dwayne
Thanks for reaching out. Let's firstly make sure that you have your user authorization set up correctly. The OAuth 2.0 process is definitely a pre-requisite before any API calls can be made.
This guide here steps through the process in detail and will result in the access and refresh tokens you will need to make API requests.
Once the Checkout form is closed, you need to call this endpoint to capture and complete the transaction.
Thanks.
0 -
Thanks Mina,
I had some time off so just getting back to this.
- I'll review the OAuth link here to confirm if this is accurate.
- I'll review my Checkout transaction endpoint and see which errors I get.
I thought I went through all of these correctly but I'm clearly missing something.
Worth noting:
- I have a simple form on the page for this.
- I'm using Javascript (ajax).
- I have not added the Form element <form> with the data-formtype=''bbCheckout" for the form to submit. Is this required? When I added this and tried it once, I didn't know where the form was supposed to post to so I left the action as “/”. But this didn't give me any feedback and just refreshed to my homepage.
Thanks,
Dwayne0
Categories
- All Categories
- 6 Blackbaud Community Help
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 396 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 650 Blackbaud Grantmaking™
- 568 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 937 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.5K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 239 The Tap (Just for Fun)
- 34 Blackbaud Community Challenges
- 31 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 785 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
