How to connect Authorize.Net API in codeigniter? - model-view-controller

I am going through the codeigniter from scratch tutorials. I understand how to build a shopping cart, but how do I connect the Authorize.net php code script in codeigniter. Basically how to connect the script to the model, view, and controller. Any article or point in the right direction would be helpful. Thanks everyone!
Here is the sample code below. I am trying to make it MVC and not procedural.
http://developer.authorize.net/downloads/samplecode/

Related

How to create your own controller in Magento

I am new to mangento. I have the knowledge on MVC architecture and codeigniter framework. Now I am working on magento. I tried with some of the tutorials that how to create the our own controller. But not getting the proper response.
So please share me some of the links through which I can learn magento. As i learnt the codeigniter with ellislab, there has no such tutorials found for me to learn magento.
Please share if anybody have the video links, through which I can learn magento.
Thanks in advance
You can use module creator or check on web.
here is one of the link I can suggest for Magento:-
https://mementia.com/creating-custom-magento-module

How to create admin and front view in codeigniter?

I want to develope an application with codeigniter
I want sperate my admin and front view, contrller and models
searched on many blogs but couldn'y get it
Can any one help me out?
If you are new to CI, please follow these tutorial:
CI Official Tutorial or CI Video Tutorial
If you are expert, please elaborate exactly what problem you are facing.

Integrating my web application with Magento

I have created a web application in PHP, Ajax, HTML5. It is ready and working perfectly. Now I want to integrate it with magento. In the application, when user clicks buy now an image is saved in a folder on the server.
I have just started using magento. There are two ways in my mind to implement the functionality,
Navigate the user from magento products page to my application page and when user clicks buy now button on my page it will be the add to cart functionality at the back end. And i will send the image name that is randomly generated and append it into the comments of product that admin can see.
Make my app a magento custom plugin. Add my HTML, css, js, php files within magento and use my app as an internal magento application.
So, i need suggestions, comments, ideas or anything that can help me.
As I have just started with magento and I don't have any experience with e-commerce. So, my question might be showing in experience.
Try to learn Magento API it can be integrated with all your apps.

Whats the Magento API for?

I plan to use Magento next year so I started browsing the Magento website. I noticed the Magento Core API and wonder what it is for? Is it something I can use to integrate parts form a running Magento installation into other applications?
Thanks :-)
Yes. You can use it to push some information in and out of Magento using SOAP XML.

Magento Payment Module like PayPal (external URL redirect)

i need help in magento payment module programming.
I want to develop a payment module for magento which should working like the "PayPal Standard Payment".
The Module in the backend is done. I can choose my new module and can activate/deactivate it.
In The Frontend i see my new payment-type on the Payment-Information site.
Now, the next step which i don't know how to start it is, to tell magento, when my new payment-type is chosen and the order is placed, redirect to the acquirers site(and send chosen data with POST-form), where the customer can fill his credit card informations and so on.
I have searched for information and tutorials but still not found any good tutorials.
Thanks a lot for any helpful answers,
brush51
If you go to Mage_Checkout_OnepageController and in savePaymentAction you can see that it loads the redirect url in session.
So what you need to do is, you implement in your payment model the method getCheckoutRedirectUrl() which basically returns the url from config or from hard coded value.
Magento will handle the rest.

Resources