First Atlantic Commerce API to API
Lumen JSON API from FAC XML API

First Atlantic Commerce API to API

I did a lot of payment solution integrations during the course of this pandemic. But I had an interesting project where the client needed a better way to interact with First Atlantic Commerce's integration API for their mobile app. They were having a hard time consuming and composing XML/ SOAP information and would have preferred a more modern format. So I stepped in and created a custom RESTful service layer that was able to translate the requests and responses into a more suitable format for mobile apps...JSON! How? Using Laravel Lumen

No alt text provided for this image

Lumen is a stripped down version of Laravel, making it a smaller, lighter and faster micro-framework suitable and easier for developers to quickly implement production ready RESTful API web services. I just needed it however, to provide an alternative format and a much simpler way for their app to send and receive the necessary information in JSON from FAC's API which was communicating in XML/SOAP format.

No alt text provided for this image

Lumen was built with RESTful capabilities in mind so it came already outfitted to output standard JSON formatted responses. There wasn't any need for any database and I did not need to construct any front facing web display. So with the framework practically running once installed, the work involved coming up with a simpler, short form, custom JSON schema that could be constructed for requests and responses and communicating that information to and from FAC's API in the necessary XML/SOAP format. I had to mimic the endpoints as close as possible with some needed modifications based on their unique requirements and added on a couple of custom laravel/composer packages to the standard framework that handled the XML/SOAP communication with FAC's API.

No alt text provided for this image

What was deployed was an extra, secure, closed service layer on top of the integration process that seeks to mediate the communication between the client and API bridging the request and response format barrier.

Could it be possible though, for First Atlantic Commerce to use JSON with their API??

To view or add a comment, sign in

More articles by Kendall Arneaud

  • Zoho, FAC, a Swiss Army Knife and Duct-tape

    I was hired a while back on a very peculiar project that prompted this post as I must admit I felt like MacGyver for a…

    5 Comments
  • Developing an App with duct-tape and string

    After a very serious social event that negatively impacted communities in my country I was looking for a way to use my…

    1 Comment
  • My Reaction to ReactJS...

    ReactJS. It is the js cool kid library on the block these days and it is practically the new UI/ UX tool you want to…

  • Learning Solidity for Ethereum

    A month ago I just finished a course in developing applications using Solidity on the Ethereum blockchain. The…

    1 Comment
  • Invoice Ninja with Wipay Plugin

    Developing, implementing and integrating online payment processing facilities locally for websites in Trinidad for me…

  • Lets #TakeItDownTT

    Got a call on a Saturday morning and it was a friend of mines who had a client that was in a desperate bind and needed…

  • Exploring Closurescript

    Most definitely something I've never encountered before. Exploring Closurescript was surely an eye opener at the vast…

  • The Twitter CPL Experiment

    I have always been fascinated with being able to harness "realtime data" to make very powerful and vivid web…

    2 Comments
  • Bottle Opener Bartender Game

    So, I had this idea for a mobile game and set out to make it as a web mobile game before I go all out mobile app. There…

    2 Comments
  • Air Console and Soccer Head Prototype

    Started learning NodeJS and been trying to use it as best as possible. But I came across this cool platform called Air…

Insights from the community

Others also viewed

Explore topics