Hello everyone, I'm trying to integrate DPM and I followed the guide here: http://developer.authorize.net/guides/DPM/wwhelp/wwhimpl/js/html/wwhelp.htm
So Here's my form code (the page the users buys the prodcut from):
<?php require_once 'anet_php_sdk/AuthorizeNet.php'; // The SDK $relay_response_url = "relay_response.php"; // You will create this file in Step 7. $api_login_id = 'MY_API_LOGIN_ID'; $transaction_key = 'MY_TRANSACTION_KEY'; $amount = "5.99"; $fp_sequence = "123"; // Any sequential number like an invoice number. echo AuthorizeNetDPM::getCreditCardForm($amount, $fp_sequence, $relay_response_url,$api_login_id, $transaction_key); ?>
Here's my relay_response.php file code:
<?php require_once 'anet_php_sdk/AuthorizeNet.php'; // The SDK $redirect_url = "receipt_page.php"; // Where the user will end up. $api_login_id = 'MY_API_LOGIN_ID_AGAIN'; $md5_setting = ""; // Your MD5 Setting $response = new AuthorizeNetSIM($api_login_id, $md5_setting); if ($response->isAuthorizeNet()) { if ($response->approved) { // Do your processing here. $redirect_url .= '?response_code=1&transaction_id=' . $response->transaction_id; } else { $redirect_url .= '?response_code='.$response->response_code . '&response_reason_text=' . $response->response_reason_text; } // Send the Javascript back to AuthorizeNet, which will redirect user back to your site. echo AuthorizeNetDPM::getRelayResponseSnippet($redirect_url); } else { echo "Error. Check your MD5 Setting."; }?>
And I keep getting this error whenever I try and hit the buy button:
3,2,13,The merchant login ID or password is invalid or the account is inactive.,,P,0,,,5.99,,auth_capture,,,,,,,,,,,,,,,,,,,,,,,,,,2D7E6D34CFEA4A68908E8F868DFFFFF6,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Any help would be much appreciated!
It's also probably worth mentioning that I'm using a live account, not a test account.
08-22-2012 05:19 PM - edited 08-22-2012 05:25 PM
08-22-2012 05:39 PM - edited 08-22-2012 05:40 PM