Solved

Magento: Modify Authorize.net frontend interface

Posted on 2013-05-15
3
752 Views
Last Modified: 2016-03-02
We are using the Authorize.net AIM interface in Magento in a slightly different way and need to remove the fields for card type, credit card number, expire date and CVV field.  We are using the Authorize.net code to send to a page that will approve and disapprove transactions based on name, so the CC info isn't needed.

The fields need to be removed or made invisible with defaults so that Authorize.net processing will proceed, and not get stopped by the verifier.

We have traced through the code and found the getPaymentMethodFormHtml(Mage_Payment_Model_Method_Abstract $method) that seems to load the form information using getChildHtml('payment.method.' . $method->getCode()), but we have been unable to trace it down from there.

Please help.
0
Comment
Question by:kenozzy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39169603
Why not just remove the html from the form.ptml in the authoriznet folder?
0
 

Accepted Solution

by:
kenozzy earned 0 total points
ID: 39189068
As it turns out, Authorize.net uses app\design\frontend\base\default\template\payment\cc.phtml for it's form, along with many other Merchant services. Because we had multiple carts, we had to put some PHP code in to that file to check for the Authorizenet service and introduced hidden fields to eliminate the appearance of the credit card fields.

Your suggestion makes sense, but in my version the AIM interface uses cc.phtml

What do I do when I solve my own problem?
0
 

Author Closing Comment

by:kenozzy
ID: 39198789
I finally found the correct answer after sorting through all the files and testing by making small changes to the files.
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question