Blackbaud Payment Form
Hello,
I've noticed that as I load this script :
Sometimes the loading fails and I get a 404 with this message in the console.
POST https://src.apis.discover.com/sdk/v1.0/initialization 404
What's happening here?
Thanks
Comments
-
Hi Lauren
It looks like you may be missing an authentication token when launching Checkout. We have recorded a demo that walks through the code step-by-step for using Checkout, including the authorization steps. You can find the video here - I think this would be helpful to review!
Payments API Deep Dive A Hands on Guide to Integrating with Blackbaud Merchant Services - YouTube
(code deep dive starts around 10min mark).
Please let us know if this resolves the issue!
Mina
0 -
Hi Mina, thank you for linking to this resource. When you say authentication token, do you mean providing a token from this endpoint when I set up my transaction Data object to pass to the Blackbaud Init function?
let transactionData = {
key: “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx”,,
payment_configuration_id: “xxx”x,
transaction_type: "card_not_present",
card_token: (Date.now().toString(36) + Math.random().toString(36).substring(2)).substring(0,19)
}
Blackbaud_Init(transactionData) ;
Our app is set up in a headless way and is using a refresh token on the backend to finalize the checkout transaction. ( so the user never steps through the o auth process themselves)0 -
Yes, let's delineate between the token you will need for Checkout vs. the OAuth token which is required for any SKY API request.
The GET Public Key is what you'll need for Checkout to capture the transaction. That specific key doesn't trigger the OAuth process itself, but it does assume that you already have a separate OAuth token.
The OAuth 2.0 authorization flow does require user interaction at least once to obtain the initial access and refresh token. The intended interaction is for a back-office user to authorize the “app” to use the Payments API. Once the initial tokens have been obtained, the refresh tokens can be used to maintain authorization indefinitely. We have a code sample showing how to do this here: https://github.com/blackbaud/skyapi-headless-data-sync.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 212 bbcon®
- 1.4K Blackbaud Altru®
- 399 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®
- 654 Blackbaud Grantmaking™
- 572 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 939 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.6K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 240 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 34 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) 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
- 790 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)
