PHP Classes

File: aim-settings.php

Recommend this page to a friend!
  Classes of Blaine Simpson   AIM   aim-settings.php   Download  
File: aim-settings.php
Role: Configuration script
Content type: text/plain
Description: Sample runtime configuration file
Class: AIM
Submit Authorize.net credit card charges
Author: By
Last change:
Date: 19 years ago
Size: 1,637 bytes
 

Contents

Class file image Download
# Set Authorize.net AIM configuration values here.

# The AIM class may be used according to the BSD license, as documented
# in AIM.php.

# Most of these settings need to mirror the settings which you have in the
# web interface at https://secure.authorize.net.

# (I'm commenting with # instead of // or /* */ because I intend to
# make this into a conventional config file some day, and that will
# probably require # comments.


<?php

# Server target destination. You probably want to leave this as it is.
$this->urlString = "https://secure.authorize.net/gateway/transact.dll";

# Your AIM login
$this->login = "changethis";

# Your Authorize.net Transaction Key (n.b. this is very different from
# a "transaction ID").
$this->tran_key = "changethis";

# Protocol field Delimiter. This is only used to decipher responses, it
# is not sent in requests. Therefore, it must be set to your Authorize.net
# "Default Field Separator" setting.
$this->pdelimiter = "|";

# If, for some reason, you use a "Field Encapsulation Character".
#$this->pencap = "*";

# Client will consider it an error if the response contains fewer than this
# number of fields.
$this->pminfields = 10;

# Authorize.net calls this "Transaction Version". I only know that 3.1
# works, so I suggest you set it to 3.1.
$this->pversion = 3.1;

# I doubt this client will work if you have relay true.
$this->prelay_response = false;

# If this is true, the request will really go to Authorize.net, but
# Authorize.net only pretend to apply the charge (the RR text and
# confirmation emails will indicate test mode).
$this->test_request = true;

return
true;
?>