Reply
Highlighted
Member
Posts: 5
Registered: ‎10-15-2012

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?

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010
Highlighted
Posts: 2,765
Topics: 57
Kudos: 245
Blog Posts: 67
Registered: ‎12-05-2011

Authorize.Net Certified Partnership