Web API in CakePHP

We would like to use the Web API payment proess, License Key email function in CakePHP. We imported all the files from the pack to the vendor folder and used the Form from View, but we keep getting the error "The merchant login ID or password is invalid or the account is inactive". We can confirm that the values for these are set correctly in PaymentSettings.php file, but for some reasons they are not being passed to CCProcessor.php file.Can you please guide as to how to implement the complete process in CakePHP 2?

That error is from Authorize.net, which likely means that the PaymentSettings file cannot be found. Are you using our payment form, or your own?

We can confirm that the Payment Form is same as we got in your Pack. In our checks we have noticed that the values (variables) from PaymentSettings.php are not carried over to CCProcessor.php and AuthorizeNet.php. All these three files are in the same vendor folder. The Payment.php file is in View folder. We also tried keeping the payment.php file in the same folder as the other three (Vendor) but it still does not work.

I really don't understand what you're asking. Are you running payment.php? Do you get any errors? If so, which errors? Did you look in the php error logs? Did you configure PHP to log errors and warning? If not, do that.

I need a whole lot more information to help you.

We are using CakePHP to create a website that will offer users a product for which license is required. We are using your Web API to track the payment and generate License keys. The Pack downloaded from your site is based on Core-PHP and is not CakePhp Ready. Hence we are manually adding the same to our CakePHP setup.CakePHP requires us to have controllers along with Views. In the case of Web API, we feel that the PaymentSettings.php, CCProcessor.php and AuthorizeNet.php files would be in Controllers and the Payment.php would be the VIEW.In this scenario the code does not work for us and we get the error mentioned in our first post. In regards to error Logs: Yes we have enabled the logs, but in CakePHP scenario no logs are being written.If we execute the Web API in basic PHP mode it works for us, but with CakePHP it is not working.If you can guide us in the same regards, it would really help us a lot.

The payment example is not MVC. If you want it to be MVC you actually have to modify it to work like that. Or, don't try to squeeze the square peg into the round hole (payment.php is not a view, CCProcessor.php, LimeLM.php, etc. are not controllers, etc.). Instead just use the payment example as-is.

Or use FastSpring and let them handle it.

If you're determined to use the payment.php in CakePHP, then you have to do a lot of work. For starters you need to enable logging for every warning and error that PHP generates (so you actually know what's wrong -- don't just swallow the errors). And you need to ensure payment.php can actually access CCProcessor.php, LimeLM.php, PaymentSettings.php, and all the other files it needs.

My advice would be to hire someone to do this for you.