<?php

/*
* YOU MUST CHANGE THE SETTINGS IN THIS FILE FROM THE DEFAULT SETTINGS TO GET YOUR PAYMENT GATEWAY TO WORK!
* SEE THE INSTRUCTIONS BELOW.
*/

abstract class Config{
# Change this to a random string. E.g. "hYadTha7j". You will need to enter this as your create-URL password on the create.php page.
# Note that any items/URLs created with a given password will no longer work if this password is changed.
static private $createURLPassword = "opensesame";

# Your customer ID supplied by eWay.
# Set to 87654321 to test. (Use test credit card number 4444333322221111.)
static private $eWayCustomerID = 87654321;

# Your username supplied by eWay. Typically something like "joe.doe@mycompany.com.au"
# Set to TestAccount to test. (Use test credit card number 4444333322221111.)
static private $eWayUserName = "TestAccount";

# The directory in which this config.php file resides. e.g. "https://mycompany.com.au/gateway/"
# If your site doesn't have SSL, use "http" instead, e.g. "http://mycompany.com.au/gateway/"
static private $gatewayBaseURL = "http://peterrosenmai.com/eway-gateway/";

# Leave this blank if your site has SSL (i.e. https://mycompany.com.au doesn't produce an error).
# Otherwise, go to https://bitly.com/ and get a shortener for "http://mycompany.com.au/gateway/response.php"
# ("http://mycompany.com.au/gateway/" should be equal to $gatewayBaseURL). The shortner will be something like "http://bit.ly/IEQ2sw".
# Set $sslRedirectToResponse to the HTTPS form of that URL, e.g. "https://bit.ly/IEQ2sw".
# This prevents "You're being redirected to a non-secure page" errors from appearing.
static private $sslRedirectToResponse = "https://bit.ly/LjPPic";

# Leave this blank if your site has SSL (i.e. https://mycompany.com.au doesn't produce an error).
# Otherwise, go to https://bitly.com/ and get a shortener for "http://mycompany.com.au/gateway/cancel.php".
# ("http://mycompany.com.au/gateway/" should be equal to $gatewayBaseURL). The shortner will be something like "http://bit.ly/HMyeMX".
# Set $sslRedirectToCancel to the HTTPS form of that URL, e.g. "https://bit.ly/HMyeMX".
# This prevents "You're being redirected to a non-secure page" errors from appearing.
static private $sslRedirectToCancel = "https://bit.ly/Mi047v";

# Change this to your company name
static private $companyName = "Peter's eWAY Demo";

# Change this to the long form of your long company name (maybe the same as the short form)
static private $companyNameLong = "Peter Rosenmai's eWAY Demonstration";

static private $currency = "AUD";

# Change this to your site's URL. Use https://www.mycompany.com.au if your site has SSL
static private $companyURL = "http://www.peterrosenmai.com";

# Change this to the URL of your contact page
static private $companyContactURL = "http://www.peterrosenmai.com/contact-me";

# Change this to your company phone number
static private $companyPhone = "02 2222 2222";

# Change this to your company email
static private $companyEmail = "noreply@peterrosenmai.com";

# Change this to the URL of your logo. This URL must be https.
# Consider using free https image hosting provided by www.sslpic.com. Leave blank for eWAY default.
static private $logoURL = "";

# Change this to the URL of your banner. This URL must be https.
# Consider using free https image hosting provided by www.sslpic.com. Leave blank for eWAY default.
static private $pageBannerURL = "https://static.e-junkie.com/sslpic/74206.41efe83400b7467bab6904dc6b8c63fc.jpg";

static private $maxCreateURLPasswordLength = 25;

static private $maxItemNameLength = 50;

static private $maxPriceLength = 7; # e.g. if 7, "1500.00" is okay

public static function get_createURLPassword(){ return self::$createURLPassword;}
public static function get_eWayCustomerID(){ return self::$eWayCustomerID;}
public static function get_eWayUserName(){ return self::$eWayUserName;}
public static function get_gatewayBaseURL(){ return self::$gatewayBaseURL;}
public static function get_sslRedirectToResponse(){ return self::$sslRedirectToResponse;}
public static function get_sslRedirectToCancel(){ return self::$sslRedirectToCancel;}
public static function get_companyName(){ return self::$companyName;}
public static function get_companyNameLong(){ return self::$companyNameLong;}
public static function get_currency(){ return self::$currency;}
public static function get_companyURL(){ return self::$companyURL;}
public static function get_companyContactURL(){ return self::$companyContactURL;}
public static function get_companyPhone(){ return self::$companyPhone;}
public static function get_companyEmail(){ return self::$companyEmail;}
public static function get_logoURL(){ return self::$logoURL;}
public static function get_pageBannerURL(){ return self::$pageBannerURL;}
public static function get_maxCreateURLPasswordLength(){return self::$maxCreateURLPasswordLength;}
public static function get_maxItemNameLength(){ return self::$maxItemNameLength;}
public static function get_maxPriceLength(){ return self::$maxPriceLength;}
}
?>