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
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.
Recommended by LinkedIn
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.
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??