ILIAS
Release_4_1_x_branch Revision 61804
|
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. |
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 | |
$settings | |
$settings_id | |
$server_host | |
$server_path | |
$vendor | |
$auth_token | |
$page_style | |
$merchant_number | |
$ssl | |
$instant_capture |
Static Private Attributes | |
static | $instance = null |
Definition at line 32 of file class.ilEPaySettings.php.
|
private |
Constructor.
Definition at line 70 of file class.ilEPaySettings.php.
References getSettings().
ilEPaySettings::clearAll | ( | ) |
Clears the payment settings for the epay payment method.
public
Definition at line 274 of file class.ilEPaySettings.php.
References getSettingsId().
|
private |
Fetches and sets the primary key of the payment settings.
private
Definition at line 138 of file class.ilEPaySettings.php.
References $ilDB, $res, $result, DB_FETCHMODE_OBJECT, and setSettingsId().
Referenced by getSettings().
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 99 of file class.ilEPaySettings.php.
References getAuthToken(), and getSettings().
ilEPaySettings::getAll | ( | ) |
Returns array of all epay settings.
public
Definition at line 228 of file class.ilEPaySettings.php.
References getAuthEmail(), getAuthToken(), getInstantCapture(), getMerchantNumber(), getServerHost(), and getServerPath().
Referenced by save(), and valid().
|
private |
Definition at line 205 of file class.ilEPaySettings.php.
Referenced by getAll().
|
private |
Definition at line 194 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 56 of file class.ilEPaySettings.php.
References $instance.
Referenced by ilShopShoppingCartGUI\__construct(), ilObjPaymentSettingsGUI\epaySettingsObject(), and ilObjPaymentSettingsGUI\saveEPaySettingsObject().
|
private |
Definition at line 216 of file class.ilEPaySettings.php.
References $instant_capture.
Referenced by getAll().
|
private |
Definition at line 184 of file class.ilEPaySettings.php.
References $merchant_number.
Referenced by getAll().
|
private |
Definition at line 164 of file class.ilEPaySettings.php.
References $server_host.
Referenced by getAll().
|
private |
Definition at line 174 of file class.ilEPaySettings.php.
References $server_path.
Referenced by getAll().
|
private |
Called from constructor to fetch settings from database.
private
Definition at line 112 of file class.ilEPaySettings.php.
References $data, $ilDB, $res, $result, DB_FETCHMODE_OBJECT, fetchSettingsId(), getSettingsId(), and setAll().
Referenced by __construct(), generatekeyForEpay(), and validateEPayData().
ilEPaySettings::getSettingsId | ( | ) |
Definition at line 154 of file class.ilEPaySettings.php.
References $settings_id.
Referenced by clearAll(), getSettings(), and save().
ilEPaySettings::save | ( | ) |
Inserts or updates (if payment settings already exist) the epay settings data.
public
Definition at line 292 of file class.ilEPaySettings.php.
References $ilDB, getAll(), getSettingsId(), and setSettingsId().
ilEPaySettings::setAll | ( | $a | ) |
Set all ePay settings using an array.
Definition at line 244 of file class.ilEPaySettings.php.
References setAuthEmail(), setAuthToken(), setInstantCapture(), setMerchantNumber(), setServerHost(), and setServerPath().
Referenced by getSettings().
ilEPaySettings::setAuthEmail | ( | $a_auth_email | ) |
Definition at line 200 of file class.ilEPaySettings.php.
Referenced by setAll().
ilEPaySettings::setAuthToken | ( | $a_auth_token | ) |
Definition at line 189 of file class.ilEPaySettings.php.
Referenced by setAll().
ilEPaySettings::setInstantCapture | ( | $a_instant_capture | ) |
Definition at line 210 of file class.ilEPaySettings.php.
Referenced by setAll().
ilEPaySettings::setMerchantNumber | ( | $a_merchant_number | ) |
Definition at line 179 of file class.ilEPaySettings.php.
Referenced by setAll().
ilEPaySettings::setServerHost | ( | $a_server_host | ) |
Definition at line 159 of file class.ilEPaySettings.php.
Referenced by setAll().
ilEPaySettings::setServerPath | ( | $a_server_path | ) |
Definition at line 169 of file class.ilEPaySettings.php.
Referenced by setAll().
ilEPaySettings::setSettingsId | ( | $a_settings_id = 0 | ) |
Definition at line 149 of file class.ilEPaySettings.php.
Referenced by fetchSettingsId(), and save().
ilEPaySettings::valid | ( | ) |
Check if the current settings looks valid.
Definition at line 257 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 80 of file class.ilEPaySettings.php.
References getAuthToken(), and getSettings().
|
private |
Definition at line 42 of file class.ilEPaySettings.php.
Referenced by getAuthToken().
|
private |
Definition at line 34 of file class.ilEPaySettings.php.
|
staticprivate |
Definition at line 48 of file class.ilEPaySettings.php.
Referenced by getInstance().
|
private |
Definition at line 46 of file class.ilEPaySettings.php.
Referenced by getInstantCapture().
|
private |
Definition at line 44 of file class.ilEPaySettings.php.
Referenced by getMerchantNumber().
|
private |
Definition at line 43 of file class.ilEPaySettings.php.
|
private |
Definition at line 39 of file class.ilEPaySettings.php.
Referenced by getServerHost().
|
private |
Definition at line 40 of file class.ilEPaySettings.php.
Referenced by getServerPath().
|
private |
Definition at line 36 of file class.ilEPaySettings.php.
|
private |
Definition at line 37 of file class.ilEPaySettings.php.
Referenced by getSettingsId().
|
private |
Definition at line 45 of file class.ilEPaySettings.php.
|
private |
Definition at line 41 of file class.ilEPaySettings.php.