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

Thank you:

So in my donate page, the action should not be direct_post.php?

 

How do I edit or delete this post, please????

jaeperry
Member

I've edited your original post to mask the API Login and Transaction keys.  You no longer need to delete anything.

 

Richard