Authorize.net AIM integration

0
I would like to integrate Authorize.net AIM SDK into your program so people don't have to navigate away from the site to process their credit cards. I think the authorize.net payment form looks a bit cheesy and not as professional as it could be.

So with that said, I have the documentation from Authorize.net which doesn't look to be too difficult...

I was just hoping that you could help me understand your code that you've already created for the SIM integration...

I wanted to see if you could comment your code a bit more to let me know where your hooks are and how your program reacts once a credit card is processed.

Specifically

How is the data pulled from the database
How is it then updated once payment is applied
How are the responses captured from Authorize.net
Where are the captured responses stored
List of variables that your code will accept
How you process errors, returns, etc

From there i was hoping to make a plugin that you could then share with everyone if you wanted.

Let me know your thoughts

Sean
Responses (2)
  • Accepted Answer

    Monday, August 11 2014, 10:38 AM - #Permalink
    0
    Hello Sean,

    I'm asuming you have some developer skills.

    well, the file you're looking for is the our current /plugins/invoices/payment_authorizenet/payment_authorizenet.php
    there you will see the functions called (on displaying the plugin, on receiving the response, etc)

    to guide you a bit:

    How is the data pulled from the database
    - the function onRenderPaymentOptions is called and the payment information is passed as an argument

    How is it then updated once payment is applied
    - the function update_payment in the plugin is the one that makes the update on the DB

    How are the responses captured from Authorize.net
    - the function _process() is the one that handles the response of the system and processes it.

    Where are the captured responses stored
    - just for debugging purposes, the data received is stored in a .txt file in /cache/invoices_authorize.txt. see the function _logData in the plugin

    List of variables that your code will accept
    - function _process in the plugin
    The reply is currently minimized Show
  • Accepted Answer

    Brian Peat
    Brian Peat
    Offline
    Wednesday, August 27 2014, 08:33 PM - #Permalink
    0
    On this subject, do you plan to release an option to use AIM or are you going to stick with SIM? I ask because currently (as far as I know) SIM does not support recurring transactions. There's a check box you can enable on the SIM form, but it doesn't appear to do anything (I know, I tested it with another site using a SIM payment form and checking that box does nothing).

    Or a question to Mediawidget: would you care to share your plugin when its done?

    thanks!
    • Germinal Camps
      more than a month ago
      maybe in the future, yes, but not for now (among other things, IM does not yet currently handle recurring payments)
    The reply is currently minimized Show
Your Reply