cancel
Showing results for 
Search instead for 
Did you mean: 

aim problem

why dpm give response as 1,1,1,This transaction has been approved.,ZV5A6I,Y,2175521708,12346,IpAD,5.99,CC,auth_capture,2,meenu,Doe,,123 Main Street,Boston,MA,02142,US,,,mkansal03@yahoo.co.in,,,,,,,,,,,,,,B9D88FFB5F45E16CA9BA5D50FFA739D7,P,2,,,,,,,,,,,XXXX0012,Discover,,,,,,,,,,,,,,,, not in recipt form or proper manner??? and how to redirect on my site aftwer getting result??
meenukansal03
Contributor
7 REPLIES 7

Are you doing AIM or DPM? download the AIM sample code and see how it work. How are you sending data to authorize.net(code)?

RaynorC1emen7
Expert
dpm method
code is

code is

 <?php
require_once 'anet_php_sdk/AuthorizeNet.php'; // The SDK
$url = "http://localhost:8080/web/";
$api_login_id = 'XXXXXXX';
$transaction_key = 'XXXXXXXX';
$md5_setting = '24Y7Ds5pX'; // Your MD5 Setting
$amount = "5.99";
AuthorizeNetDPM::directPostDemo($url, $api_login_id, $transaction_key, $amount, $md5_setting);
?>

 

your relay response url $url = "http://localhost:8080/web/"; is not accessable from the outside(authorize.net can't access it for relay response).

so what we can use??

You will need a test site that can be acess from the outside or you won't be able to test the relay response feature.