Public Member Functions | |
__construct () | |
getTsProducts ($dPrice) | |
getTsProduct ($sTsId) | |
getProduct ($sKey) | |
requestForTsProtection ($aValues, $sPaymentId) | |
checkCertificate ($iTrustedShopId, $blTsTestMode) | |
Protected Member Functions | |
_getTsPaymentId ($sPaymentId) | |
_getTsProductIds () | |
_getProductNettPrices () | |
_getProductAmounts () | |
_getTsProducts () | |
_getTsProductCurrId ($sTsId, $sCurr) | |
Protected Attributes | |
$_aProducts = null | |
$_aProductIds = null | |
$_aProductNettPrices = null | |
$_aProductAmounts = null | |
$_sTsProtectProducts | |
$_sTsCurrencyProducts |
TRusted shops protection product manager.
Definition at line 6 of file oxtsprotection.php.
oxtsprotection.__construct | ( | ) |
Class constructor, loads base objects.
Reimplemented from oxSuperCfg.
Definition at line 67 of file oxtsprotection.php.
oxtsprotection._getProductAmounts | ( | ) | [protected] |
Returns TS protection product amounts
Definition at line 282 of file oxtsprotection.php.
oxtsprotection._getProductNettPrices | ( | ) | [protected] |
Returns TS protection product nettprices
Definition at line 263 of file oxtsprotection.php.
oxtsprotection._getTsPaymentId | ( | $ | sPaymentId | ) | [protected] |
Returns TS payment id by shop payment id
string | $sPaymentId payment id |
Definition at line 233 of file oxtsprotection.php.
oxtsprotection._getTsProductCurrId | ( | $ | sTsId, | |
$ | sCurr | |||
) | [protected] |
Returns TS protection product id by currency
string | $sTsId product id | |
string | $sCurr active currency |
Definition at line 320 of file oxtsprotection.php.
oxtsprotection._getTsProductIds | ( | ) | [protected] |
oxtsprotection._getTsProducts | ( | ) | [protected] |
oxtsprotection.checkCertificate | ( | $ | iTrustedShopId, | |
$ | blTsTestMode | |||
) |
Executes TS certificate check
integer | $iTrustedShopId Trusted shop Id | |
bool | $blTsTestMode if test mode is on |
Definition at line 201 of file oxtsprotection.php.
oxtsprotection.getProduct | ( | $ | sKey | ) |
Creats and returns TS protection product by key
string | $sKey key |
Definition at line 117 of file oxtsprotection.php.
oxtsprotection.getTsProduct | ( | $ | sTsId | ) |
Returns TS protection product by id
string | $sTsId TS protection product id |
Definition at line 103 of file oxtsprotection.php.
oxtsprotection.getTsProducts | ( | $ | dPrice | ) |
Returns array of TS protection products according to order price
double | $dPrice order price |
Definition at line 81 of file oxtsprotection.php.
oxtsprotection.requestForTsProtection | ( | $ | aValues, | |
$ | sPaymentId | |||
) |
Executes TS protection
array | $aValues Order values | |
string | $sPaymentId Order payment id |
Definition at line 142 of file oxtsprotection.php.
oxtsprotection.$_aProductAmounts = null [protected] |
Definition at line 34 of file oxtsprotection.php.
oxtsprotection.$_aProductIds = null [protected] |
Definition at line 20 of file oxtsprotection.php.
oxtsprotection.$_aProductNettPrices = null [protected] |
Definition at line 27 of file oxtsprotection.php.
oxtsprotection.$_aProducts = null [protected] |
Definition at line 13 of file oxtsprotection.php.
oxtsprotection.$_sTsCurrencyProducts [protected] |
array( "TS080501_500_30_EUR" => array( "GBP" => "TS100629_500_30_GBP", "CHF" => "TS100629_1500_30_GBP", "USD" => "TS080501_500_30_USD" ), "TS080501_1500_30_EUR" => array( "GBP" => "TS100629_1500_30_GBP", "CHF" => "TS100629_1500_30_CHF", "USD" => "TS100629_1500_30_USD" ), "TS080501_2500_30_EUR" => array( "GBP" => "TS100629_2500_30_GBP", "CHF" => "TS100629_2500_30_CHF", "USD" => "TS100629_2500_30_USD" ), "TS080501_5000_30_EUR" => array( "GBP" => "TS100629_5000_30_GBP", "CHF" => "TS100629_5000_30_CHF", "USD" => "TS100629_5000_30_USD" ), "TS080501_10000_30_EUR" => array( "GBP" => "TS100629_1000_30_GBP", "CHF" => "TS100629_10000_30_CHF", "USD" => "TS100629_10000_30_USD" ), "TS080501_20000_30_EUR" => array( "GBP" => "TS100629_2000_30_GBP", "CHF" => "TS100629_20000_30_CHF", "USD" => "TS100629_20000_30_USD" ) )
Definition at line 54 of file oxtsprotection.php.
oxtsprotection.$_sTsProtectProducts [protected] |
array( "TS080501_500_30_EUR" => array( "netto" => "0.82", "amount" => "500" ), "TS080501_1500_30_EUR" => array( "netto" => "2.47", "amount" => "1500" ), "TS080501_2500_30_EUR" => array( "netto" => "4.12", "amount" => "2500" ), "TS080501_5000_30_EUR" => array( "netto" => "8.24", "amount" => "5000" ), "TS080501_10000_30_EUR" => array( "netto" => "16.47", "amount" => "10000" ), "TS080501_20000_30_EUR" => array( "netto" => "32.94", "amount" => "20000" ) )
Definition at line 41 of file oxtsprotection.php.