Get authorization code after clicking authorize button
In the Payments API Deep Dive A Hands on Guide to Integrating with Blackbaud Merchant Services in youtube , javascript file used to collect code value,
Need javascript which will collect authorization code and add it in redirect url after clicking the authorize button
<script type="text/javascript">
function getQueryParams(url) {
const queryString = url.split('?')[1];
const params = {};
if (queryString) {
queryString.split('&').forEach((param) => {
const [key, value] = param.split('=');
params[key] = decodeURIComponent(value);
});
}
return params;
}
const queryParams = getQueryParams(window.location.href);
console.log(queryParams.code); // Output: John
//console.log(queryParams.age); // Output:
window.alert([queryParams.code]);
I have tried adding the above javascript in default page but still it is not working
Comments
-
Hi @Muthusamy Nellaiappan - there are various tutorials/code samples that may help guide you through the authorization process, like this NodeJS tutorial. The full code for this sample can be found on GitHub. Hope this helps!
1 -
Our problem is our application is 4.5 framework, none of these js files cant able to use, and it is also in vb , for this payment we have to upgrade our application itself, without converting the application into core or another latest framework we are trying to find a solution .
0 -
@Muthusamy Nellaiappan - yes, sorry I do not believe there are any examples in VB. But hopefully the general idea of making the authorization request and hosting a redirect URL within your application can be gathered from some of the existing tutorials. The tutorial in C# .Net Core may be the closest to give you an idea of how it should work. Hope that helps to get you going!
0
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®
- 649 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
- 247 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)
