Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Magento: Modify Authorize.net frontend interface

Posted on 2013-05-15
3
Medium Priority
?
758 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Businesses who process credit card payments have to adhere to PCI Compliance standards. Here’s why that’s important.
This article was initially published on Monitis Blog, you can read it here . When it comes to deciding which approach to website performance monitoring is best for your business, unfortunately, like so many options in life . . . it depends. In th…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

722 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