ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
validateEPayData ($amount, $orderid, $transactionid, $md5Key) | |
This function validates data received from ePay, and verifies the md5key is valid. | |
generatekeyForEpay ($cur, $amount, $orderid) | |
This function generates a valid MD5 key on the data about to be transmitted to ePay. | |
setSettingsId ($a_settings_id=0) | |
getSettingsId () | |
setServerHost ($a_server_host) | |
setServerPath ($a_server_path) | |
setMerchantNumber ($a_merchant_number) | |
setAuthToken ($a_auth_token) | |
setAuthEmail ($a_auth_email) | |
setInstantCapture ($a_instant_capture) | |
getAll () | |
Returns array of all epay settings. | |
setAll ($a) | |
Set all ePay settings using an array. | |
valid () | |
Check if the current settings looks valid. | |
clearAll () | |
Clears the payment settings for the epay payment method. | |
save () | |
Inserts or updates (if payment settings already exist) the epay settings data. |
Static Public Member Functions | |
static | getInstance () |
Static method to get the singleton instance. |
Data Fields | |
$pSettings |
Private Member Functions | |
__construct () | |
Constructor. | |
getSettings () | |
Called from constructor to fetch settings from database. | |
fetchSettingsId () | |
Fetches and sets the primary key of the payment settings. | |
getServerHost () | |
getServerPath () | |
getMerchantNumber () | |
getAuthToken () | |
getAuthEmail () | |
getInstantCapture () |
Private Attributes | |
$db | |
$server_host | |
$server_path | |
$vendor | |
$auth_token | |
$page_style | |
$merchant_number | |
$ssl | |
$instant_capture |
Static Private Attributes | |
static | $instance = null |
Definition at line 35 of file class.ilEPaySettings.php.
|
private |
Constructor.
Definition at line 74 of file class.ilEPaySettings.php.
References ilPaymentSettings\_getInstance(), and getSettings().
ilEPaySettings::clearAll | ( | ) |
Clears the payment settings for the epay payment method.
public
Definition at line 283 of file class.ilEPaySettings.php.
|
private |
Fetches and sets the primary key of the payment settings.
private
Definition at line 147 of file class.ilEPaySettings.php.
ilEPaySettings::generatekeyForEpay | ( | $cur, | |
$amount, | |||
$orderid | |||
) |
This function generates a valid MD5 key on the data about to be transmitted to ePay.
ePay will again verify the data and if the data is not valid and error will be thrown (redirected to decline)
Definition at line 104 of file class.ilEPaySettings.php.
References getAuthToken(), and getSettings().
ilEPaySettings::getAll | ( | ) |
Returns array of all epay settings.
public
Definition at line 237 of file class.ilEPaySettings.php.
References getAuthEmail(), getAuthToken(), getInstantCapture(), getMerchantNumber(), getServerHost(), and getServerPath().
Referenced by save(), and valid().
|
private |
Definition at line 214 of file class.ilEPaySettings.php.
Referenced by getAll().
|
private |
Definition at line 203 of file class.ilEPaySettings.php.
References $auth_token.
Referenced by generatekeyForEpay(), getAll(), and validateEPayData().
|
static |
Static method to get the singleton instance.
public
Definition at line 60 of file class.ilEPaySettings.php.
References $instance.
|
private |
Definition at line 225 of file class.ilEPaySettings.php.
References $instant_capture.
Referenced by getAll().
|
private |
Definition at line 193 of file class.ilEPaySettings.php.
References $merchant_number.
Referenced by getAll().
|
private |
Definition at line 173 of file class.ilEPaySettings.php.
References $server_host.
Referenced by getAll().
|
private |
Definition at line 183 of file class.ilEPaySettings.php.
References $server_path.
Referenced by getAll().
|
private |
Called from constructor to fetch settings from database.
private
Definition at line 117 of file class.ilEPaySettings.php.
References $result, and setAll().
Referenced by __construct(), generatekeyForEpay(), and validateEPayData().
ilEPaySettings::getSettingsId | ( | ) |
Definition at line 163 of file class.ilEPaySettings.php.
ilEPaySettings::save | ( | ) |
Inserts or updates (if payment settings already exist) the epay settings data.
public
Definition at line 304 of file class.ilEPaySettings.php.
References getAll().
ilEPaySettings::setAll | ( | $a | ) |
Set all ePay settings using an array.
Definition at line 253 of file class.ilEPaySettings.php.
References setAuthEmail(), setAuthToken(), setInstantCapture(), setMerchantNumber(), setServerHost(), and setServerPath().
Referenced by getSettings().
ilEPaySettings::setAuthEmail | ( | $a_auth_email | ) |
Definition at line 209 of file class.ilEPaySettings.php.
Referenced by setAll().
ilEPaySettings::setAuthToken | ( | $a_auth_token | ) |
Definition at line 198 of file class.ilEPaySettings.php.
Referenced by setAll().
ilEPaySettings::setInstantCapture | ( | $a_instant_capture | ) |
Definition at line 219 of file class.ilEPaySettings.php.
Referenced by setAll().
ilEPaySettings::setMerchantNumber | ( | $a_merchant_number | ) |
Definition at line 188 of file class.ilEPaySettings.php.
Referenced by setAll().
ilEPaySettings::setServerHost | ( | $a_server_host | ) |
Definition at line 168 of file class.ilEPaySettings.php.
Referenced by setAll().
ilEPaySettings::setServerPath | ( | $a_server_path | ) |
Definition at line 178 of file class.ilEPaySettings.php.
Referenced by setAll().
ilEPaySettings::setSettingsId | ( | $a_settings_id = 0 | ) |
Definition at line 158 of file class.ilEPaySettings.php.
ilEPaySettings::valid | ( | ) |
Check if the current settings looks valid.
Definition at line 266 of file class.ilEPaySettings.php.
References getAll().
ilEPaySettings::validateEPayData | ( | $amount, | |
$orderid, | |||
$transactionid, | |||
$md5Key | |||
) |
This function validates data received from ePay, and verifies the md5key is valid.
Definition at line 85 of file class.ilEPaySettings.php.
References getAuthToken(), and getSettings().
|
private |
Definition at line 46 of file class.ilEPaySettings.php.
Referenced by getAuthToken().
|
private |
Definition at line 37 of file class.ilEPaySettings.php.
|
staticprivate |
Definition at line 52 of file class.ilEPaySettings.php.
Referenced by getInstance().
|
private |
Definition at line 50 of file class.ilEPaySettings.php.
Referenced by getInstantCapture().
|
private |
Definition at line 48 of file class.ilEPaySettings.php.
Referenced by getMerchantNumber().
|
private |
Definition at line 47 of file class.ilEPaySettings.php.
ilEPaySettings::$pSettings |
Definition at line 38 of file class.ilEPaySettings.php.
|
private |
Definition at line 43 of file class.ilEPaySettings.php.
Referenced by getServerHost().
|
private |
Definition at line 44 of file class.ilEPaySettings.php.
Referenced by getServerPath().
|
private |
Definition at line 49 of file class.ilEPaySettings.php.
|
private |
Definition at line 45 of file class.ilEPaySettings.php.