I think this question relates to most PHP API's you download and run in your application. I want to integrate the Klarna API with my CakePHP application. Now, I am not a very seasoned CakePHP programmer so my questions might be very rudimentary. But I haven't figured this out conceptually, how it works with external non-CakePHP software in a CakePHP app. Basically how do I set it up and use it.
- In which folder do I put the Klarna files in my CakePHP app? Webroot?
- To initialise and configure the Klarna API for use, do I simply put the Klarna code in the controller without messing about with any of the CakePHP component / plugin load procedures?
- Do I then run the API code in the controller as well?
- I don't need to be using cURL to talk to Klarna in this case right? The Klarna API will make the call to Klarna's servers itself?