| Server IP : 172.67.201.108 / Your IP : 216.73.216.11 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/mitzvahm/planner/anet_php_sdk/tests/ |
Upload File : |
<?php
/**
* Tests for the AuthorizeNet PHP SDK
*/
/**
* Enter your test account credentials to run tests against sandbox.
*/
define("AUTHORIZENET_API_LOGIN_ID", "");
define("AUTHORIZENET_TRANSACTION_KEY", "");
define("AUTHORIZENET_MD5_SETTING", "");
/**
* Enter your live account credentials to run tests against production gateway.
*/
define("MERCHANT_LIVE_API_LOGIN_ID", "");
define("MERCHANT_LIVE_TRANSACTION_KEY", "");
/**
* Card Present Sandbox Credentials
*/
define("CP_API_LOGIN_ID", "");
define("CP_TRANSACTION_KEY", "");
define("AUTHORIZENET_LOG_FILE", dirname(__FILE__) . "/log");
// Clear logfile
file_put_contents(AUTHORIZENET_LOG_FILE, "");
if (!function_exists('curl_init')) {
throw new Exception('AuthorizeNetSDK needs the CURL PHP extension.');
}
if (!function_exists('simplexml_load_file')) {
throw new Exception('The AuthorizeNet SDK requires the SimpleXML PHP extension.');
}
require_once dirname(dirname(__FILE__)) . '/AuthorizeNet.php';
require_once 'PHPUnit/Framework.php';
if (AUTHORIZENET_API_LOGIN_ID == "") {
die('Enter your merchant credentials in '.__FILE__.' before running the test suite.');
}