cancel
Showing results for 
Search instead for 
Did you mean: 

direct post method

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

jaeperry
Member
13 REPLIES 13

REMOVE your loginID and transactionKey info

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

RaynorC1emen7
Expert

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

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

Thanks.

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.

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

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

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

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

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