Hello,
I have copied and followed the directions for the direct post method to use on an html form: http://aoh-nj.org/donate
I am getting an error that says: Error -- not AuthorizeNet. Check your MD5 Setting.
My direct_post.php file has the following code:
<?php
require_once 'anet_php_sdk/AuthorizeNet.php'; // The SDK
$url = "http://aoh-nj.org/direct_post.php";
$api_login_id = 'xxx';
$transaction_key = 'xxx';
$md5_setting = 'aohnj'; // Your MD5 Setting
$amount = "5.99";
AuthorizeNetDPM::directPostDemo($url, $api_login_id, $transaction_key, $amount, $md5_setting);
?>
Please help me find my error.
Thanks,
Jeannine
REMOVE your loginID and transactionKey info
and regen the transactionKEY. It like you are giving out your login/password.
01-07-2013 06:40 AM
like the error said check your MD5 setting on the merchant account setting.
01-07-2013 06:42 AM
Remove it when I send it to you, or remove it from the code entirely before I upload it?
Thanks.
01-07-2013 06:53 AM
I checked the md5 setting, I read the tutorial, created the md5 and added the code I made the the direct_post.php. I'm not sure what else I should do to make it work.
01-07-2013 06:54 AM
Remove from the forum, everyone that look at this post can use your info.
01-07-2013 07:01 AM
Oh! I can't find a way to remove the post!!
01-07-2013 07:07 AM
the problem is that you are posting to direct_post.php on your http://aoh-nj.org/donate page
Just run the direct_post.php. And see the x_??? fields in the page source.
Change the $url = 'https://developer.authorize.net/tools/paramdump/index.php'
That would show what is being return for the Credit card entry screen. and use that to compare the MD5 you generated and the x_MD5_Hash. The code is in the AuthorizeNetSIM.php isAuthorizeNet() - generateHash()
01-07-2013 07:43 AM
regen the transactionKey. and one of the MOD will remove it when they see it.
01-07-2013 07:44 AM
I regenerated the transactionkey. Can the moderator delete my post?
01-07-2013 07:51 AM