Forum - Pay fines link from Primo to intermediate page
- This topic has 9 replies, 4 voices, and was last updated 4 months, 3 weeks ago by m schwendener.
- September 12, 2018 at 1:42 am #35190AnonymousInactive
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 #36821AnonymousInactive
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 #36823AnonymousInactive
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 #36825AnonymousInactive
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 #36826AnonymousInactive
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 #36828AnonymousInactive
I meant how you are getting the ID. From the $ctrl object or using the JWT?
KevinNovember 15, 2018 at 10:51 pm #36830AnonymousInactive
Getting it from the JWT then passing to $ctrl.
GaryDecember 5, 2018 at 11:01 pm #36839AnonymousInactive
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.