function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
FilikinFilikin 

Integration with RealEx

Hi, has anyone tried integrating with RealEx - the payment processor? They provide sample code in Java that I am going to try converting to Apex, but I was hoping someone had already done this. thanks
Best Answer chosen by Admin (Salesforce Developers) 
FilikinFilikin
Sorted - too a lot of messing, but we got there

All Answers

FilikinFilikin
Sorted - too a lot of messing, but we got there
This was selected as the best answer
Vivian Charlie 1208Vivian Charlie 1208
Hi Filikin,

Can you help me with the sample code you developed for integrating RealEx with Salesforce.
Like what are the endpoints, soap actions etc. I too have a requirement to integrate salesforce with RealEx.
FilikinFilikin
Hi Vivian,
The code is available in Github.
 
This was a portal project and the bit that caused me the most headaches was that when the transaction is approved by Realex they call a web page that you pass with the transaction, but this page only has the guest credentials.
I wanted to update a record to mark the transaction as paid or failed in the end I just displayed a message to the user and let them update the transaction.
 
The Apex and VisualForce to make the RealEx request is here:
https://github.com/Filikin/Macra/blob/master/src/classes/RealExRequest.cls
https://github.com/Filikin/Macra/blob/master/src/pages/RealExRequest.page
 
and the receiving of the response is here:
https://github.com/Filikin/Macra/blob/master/src/classes/RealExResponse.cls
https://github.com/Filikin/Macra/blob/master/src/pages/RealExResponse.page
 
I hope this helps.
Vivian Charlie 1208Vivian Charlie 1208
Thank you for the help Filikin. Much appreciated.
Kaustubh LabheKaustubh Labhe
Hi Filikin, 
I am working with a charity who uses Realex for their donations. Is their a way once the donation is approved the response creates a record in a custom object, storing every donations made? 
If not, can i develop a vf page to do a get call to realex and check what were the payments made filtered by date or contact's name or something? 

Thanks
KL 
FilikinFilikin
Hi KL,
I never looked at polling RealEx - I relied on RealEx to call a publically available VF page. The main problem was around the security - what the Apex controller linked to that VF page could do.
Maybe the interface has improved since 2013