Forum - Pay fines link from Primo to intermediate page
This topic contains 9 replies, has 4 voices, and was last updated by m schwendener 1 week, 1 day ago.
- September 12, 2018 at 1:42 am #35190Anonymous
I don’t know Primo.
I have been tasked with creating an interface page between Primo and our payment gateway. This page needs to display a user’s current fines so they can select which ones to pay.
How can I create a “Pay fines” link in Primo which can pass a user (Alma) primary ID to my interface page. My understanding is that the options are mapping tables or customisation packages – are there pros and cons to each of these, and where can I find coding documentation for customisation packages? Or are there better options?
Thanks very much,
GaryNovember 9, 2018 at 4:31 am #36821Anonymous
Hopefully you may have found the solution already.
But really depends on which UI and placement of the link you are using with Primo, Classic or New?
With the New UI, you may have to write an angularjs script to place the link with the user id as a passing parameter, then once it reaches your payment gateway, it will retrieve the fines and fees from Alma with the REST API available (assuming you are using Alma with Primo) with the passing user id and shows it on the page.
Hope it helps.
KevinNovember 14, 2018 at 8:46 pm #36823Anonymous
Thanks a lot for your reply. Yes, I have been working on this for a while now and have used a customisation package in Primo (I think we are on VE – still learning!). This seems to be working well – except for one thing – the Payment link I created for the “Fines + fees” tab shows up in *all* tabs.
I have used the directive name prmAccountLinksAfter to hook into this section of the page, but do you know how I can limit this link showing up *only* on the “Fines + fees” tab? Perhaps there is another directive that I’ve missed?
GaryNovember 15, 2018 at 12:00 am #36825Anonymous
We are using the prmFinesAfter but we are on MT. But I would expect with the Primo NUI, they should be fairly close to each other with MT and VE.
May I ask, are you taking any of the user info and pass it to your intermediate page?
KevinNovember 15, 2018 at 1:54 am #36826Anonymous
Ah yes, you’re right! I didn’t see prmFinesAfter down the bottom there, thank you.
I’m just passing the Alma primary ID to the intermediate page.
GaryNovember 15, 2018 at 9:33 pm #36828Anonymous
I meant how you are getting the ID. From the $ctrl object or using the JWT?
KevinNovember 15, 2018 at 10:51 pm #36830Anonymous
Getting it from the JWT then passing to $ctrl.
GaryDecember 5, 2018 at 11:01 pm #36839Anonymous
That is the thing (JWT) I am trying to avoid.
Cheers,March 26, 2019 at 4:00 pm #51567University of California Riverside 01CDL_RIV_INSTParticipant
Hi – I’m working on something similar.
How are you getting the JWT? I can’t seem to find any documentation on how I can get the JWT from within my custom controller.
Thanks!October 5, 2019 at 2:00 pm #63334m schwendenerParticipant
You must be logged in to reply to this topic.