Solved

Magento: Modify Authorize.net frontend interface

Posted on 2013-05-15
3
724 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
  • 2
3 Comments
 
LVL 58

Expert Comment

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

Accepted Solution

by:
kenozzy earned 0 total points
Comment Utility
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
Comment Utility
I finally found the correct answer after sorting through all the files and testing by making small changes to the files.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now