Reply
Member
Posts: 2
Registered: ‎01-20-2012

Is this an error in the DPM docs?

Hi,

I've bee learning about the DPM and I saw this in the documentation...

Note   Unless you have explicitly set MD5-Hash in the merchant interface (using Account 
> Settings > Security Settings > MD5-Hash), leave this as an empty string.
<?php require_once 'anet_php_sdk/AuthorizeNet.php'; // The SDK
$redirect_url = "http://YOUR_DOMAIN .com/receipt_page.php"; // 
Where the user 
will end up.
$api_login_id = 'YOUR_API_LOGIN_ID';
$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
   {.............more code

 Please note the $response =    LINE

it states... new AuthorizeNetSIM($api_login_id, $md5_setting);

specifying "SIM"

Shouldnt this be DPM?

 

I don't really know,. as I am just getting up to speed,

Thanks

MrFitz

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

Re: Is this an error in the DPM docs?

Is correct, relay response work the same way for all API that support it.

Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: Is this an error in the DPM docs?

Some of the DPM mechanics duplicate SIM mechanics and therefore call functions from that class.