Solved

Magento: Modify Authorize.net frontend interface

Posted on 2013-05-15
3
743 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
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

830 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