cancel
Showing results for 
Search instead for 
Did you mean: 

DPM PHP Question

I love the DPM demo code under 15 minute page.

 

<?php
require_once
'anet_php_sdk/AuthorizeNet.php';// The SDK
$url
="http://YOUR_DOMAIN.com/direct_post.php";
$api_login_id
='YOUR_API_LOGIN_ID';
$transaction_key
='YOUR_TRANSACTION_KEY';
$md5_setting
='YOUR_API_LOGIN_ID';// Your MD5 Setting
$amount
="5.99";
AuthorizeNetDPM::directPostDemo($url, $api_login_id, $transaction_key, $amount, $md5_setting);
?>

 

BUT this code pulls a form which posts to the test server.  How can I tweak the above code so that when the form is pulled it goes to the production server, https://secure......transact.dll?

jimk
Member
2 REPLIES 2