Reply
Member
Posts: 7
Registered: ‎01-07-2013

direct post method

[ Edited ]

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

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: direct post method

REMOVE your loginID and transactionKey info

and regen the transactionKEY. It like you are giving out your login/password.

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: direct post method

like the error said check your MD5 setting on the merchant account setting.

Member
Posts: 7
Registered: ‎01-07-2013

Re: direct post method

Remove it when I send it to you, or remove it from the code entirely before I upload it?

Thanks.

Member
Posts: 7
Registered: ‎01-07-2013

Re: direct post method

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.

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: direct post method

Remove from the forum, everyone that look at this post can use your info.

Member
Posts: 7
Registered: ‎01-07-2013

Re: direct post method

Oh! I can't find a way to remove the post!!

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: direct post method

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()

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: direct post method

regen the transactionKey. and one of the MOD will remove it when they see it.

Member
Posts: 7
Registered: ‎01-07-2013

Re: direct post method

I regenerated the transactionkey.  Can the moderator delete my post?