PHP Classes

File: config.inc.php.dist

Recommend this page to a friend!
  Classes of John Conde   PHP Authorize.net Integration with JSON API   config.inc.php.dist   Download  
File: config.inc.php.dist
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Authorize.net Integration with JSON API
Process online payments with Authorize.net API
Author: By
Last change:
Date: 4 years ago
Size: 544 bytes
 

Contents

Class file image Download
<?php
   
/*
     * This file is NOT required to use the AuthnetJson package.
     * It exists solely for the examples to work "out of the box".
     */

   
require(__DIR__ . '/vendor/autoload.php');

   
defined('AUTHNET_LOGIN') || define('AUTHNET_LOGIN', '');
   
defined('AUTHNET_TRANSKEY') || define('AUTHNET_TRANSKEY', '');
   
defined('AUTHNET_SIGNATURE') || define('AUTHNET_SIGNATURE', '');

    if (
version_compare(PHP_VERSION, '7.2.0') < 0) {
        throw new \
RuntimeException('AuthnetJson requires PHP 7.2 or greater');
    }