0

I found the DPM PHP SDK on authorize.net at http://developer.authorize.net/api/dpm/, and tried to test but it's not working, the page displays the error: Warning: require_once(PHPUnit/Framework.php). Does someone know how to resolve this, or can provide me with step by step tutorial?

4

2 回答 2

1

似乎忘记了以下语句的要求

PHP SDK 包含一个帮助函数,该函数在一行代码中实现了 Direct Post 方法的演示。将下面的代码复制并粘贴到一个名为“direct_post.php”的新文件中,并填写所有不完整的变量。确保您的服务器可以公开访问,并且$url 变量指向这个新文件

看一个简短的教程

教程“15 分钟或更少”

于 2012-07-27T00:37:38.280 回答
0

我只需要创建一个 php 文件并输入以下代码:

require_once 'anet_php_sdk/AuthorizeNet.php'; // The SDK
$url = "http://YOUR_DOMAIN.com/file_I_created.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);
于 2012-07-27T01:10:49.633 回答