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
Thank you:
So in my donate page, the action should not be direct_post.php?
01-07-2013 07:53 AM
No, for production account should be something like
https://secure.authorize.net/gateway/transact.dll
And you need the Minimum Required Fields
http://developer.authorize.net/guides/DPM/wwhelp/wwhimpl/js/html/wwhelp.htm#href=Appendix_A.html
01-07-2013 07:57 AM
How do I edit or delete this post, please????
01-07-2013 10:42 AM
I've edited your original post to mask the API Login and Transaction keys. You no longer need to delete anything.
Richard
01-07-2013 11:23 AM