Need some tips on setting up this distributed solution..??
Posted on 2011-10-22
I'll try and make this a quick intro.
I have a PHP class library that I wrote that allows PHP developers to integrate PayPal API's into their solutions very easily. It includes every possible call that PayPal offers and makes them all very simple to work with.
With FileMaker, I'm using the Scodigo PHP SmartPill plugin to give me the power of PHP within FileMaker, which is great. It comes with a "FunctionMaker" utility that allows you to drop in PHP code and create custom functions for FileMaker very easily.
So at it stands now, I have a set of custom functions (actually External Functions) in FileMaker that allow me to easily make PayPal API calls.
Within my own solutions I can actually customize the functions themselves to update my own db tables with all the response data from PayPal (ie. transaction id, timestamp, correlation id, fee information, etc.)
I'd like to distribute these functions, though, so other developers can use them the same way I do. They really are extremely useful for anybody using FileMaker and trying to integrate with PayPal services. My struggle is how to make all of the response data available in a way that any 3rd party developer can easily implement into their own solution.
Some of the API calls will have a bunch of response fields. While I would typically create a complete log in my own system, I can't rely on other developers having the same table/field names. I could even create new tables/fields if they didn't exist, but I'd rather not do that if I can avoid it because I know some developers won't like that.
So, what's a good way I can easily make all of this response data available to 3rd party developers to work into their own systems in whatever way they want?
Any information on this would be greatly appreciated. Thanks!