?
Solved

Getting around installing MHASH for authorize.net

Posted on 2009-05-06
4
Medium Priority
?
425 Views
Last Modified: 2013-12-16
I'm trying to set up a simple form to be posted to authorize.net so the customer can charge their card. I keep on getting the error that I need the MHASH function.
The php server version I'm on is 4.3.*. I don't have access to the actual server so I can not install anything or upgrade the system.
Is there any other way around this?
0
Comment
Question by:rivkamak
3 Comments
 
LVL 15

Expert Comment

by:m1tk4
ID: 24325396
Download SquirrelMail and look for the code handling DIGEST authentication. DigAuth involves calculating MD5 hashes and as far as I remember there was a pure PHP implementation of mhash there. If not, try googling "pure php mhash". Alternatively, see if they have Perl/Python packages installed that calculate mhash.
0
 

Author Comment

by:rivkamak
ID: 24444445
will authorize.net allow any other script with out MHASH with the data?
0
 
LVL 51

Accepted Solution

by:
Steve Bink earned 1000 total points
ID: 24698099
You really shouldn't need the MHASH library at all.  

First, you don't need to hash anything to send a transaction to Authorize.net.  You will need to calculate an MD5 hash of some of the return data in order to verify the security of the communication, but that does not really impact the transaction as much as your application's perception of it.

That brings us to MD5:

http://www.php.net/manual/en/function.md5.php

Chances are, you're trying to use MHASH to generate an MD5 hash of your data.  If that's the case, you can use the internal md5() function instead.  No additional libraries are needed.

If you're not aiming for MD5 functionality, tell us what algorithms you need to include, and we can tell you where else they might be available.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

The online market is growing at an unprecedented rate and retail eCommerce sales are expected to reach $4 trillion by 2020. Yet, the profit is not just there for the taking because you have to set yourself apart from the competition.
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Suggested Courses
Course of the Month17 days, 5 hours left to enroll

864 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