Solved

Getting around installing MHASH for authorize.net

Posted on 2009-05-06
4
388 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
4 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 50

Accepted Solution

by:
Steve Bink earned 250 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

825 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