OXID eShop CE
6.1.5
|
Public Member Functions | |
__construct () | |
setPaymentVatOnTop ($blOnTop) | |
getGroups () | |
setDynValues ($aDynValues) | |
setDynValue ($oKey, $oVal) | |
getDynValues () | |
getPaymentValue ($dBasePrice) | |
getBaseBasketPriceForPaymentCostCalc ($oBasket) | |
calculate ($oBasket) | |
getPrice () | |
getFNettoPrice () | |
getFBruttoPrice () | |
getFPriceVat () | |
getCountries () | |
delete ($sOxId=null) | |
isValidPayment ($aDynValue, $sShopId, $oUser, $dBasketPrice, $sShipSetId) | |
getPaymentErrorNumber () | |
Public Attributes | |
const | PAYMENT_ADDSUMRULE_ALLGOODS = 1 |
const | PAYMENT_ADDSUMRULE_DISCOUNTS = 2 |
const | PAYMENT_ADDSUMRULE_VOUCHERS = 4 |
const | PAYMENT_ADDSUMRULE_SHIPCOSTS = 8 |
const | PAYMENT_ADDSUMRULE_GIFTS = 16 |
Protected Attributes | |
$_oGroups = null | |
$_aCountries = null | |
$_sClassName = 'oxpayment' | |
$_aDynValues = null | |
$_iPaymentError = null | |
$_blPaymentVatOnTop = false | |
$_oPrice = null | |
Payment manager. Performs payment methods, such as assigning to someone, returning value etc.
OxidEsales\EshopCommunity\Application\Model\Payment::__construct | ( | ) |
Class constructor, initiates parent constructor (parent::oxI18n()).
OxidEsales\EshopCommunity\Application\Model\Payment::calculate | ( | $oBasket | ) |
Returns price object for current payment applied on basket
\OxidEsales\Eshop\Application\Model\UserBasket | $oBasket | session basket |
OxidEsales\EshopCommunity\Application\Model\Payment::delete | ( | $sOxId = null | ) |
Delete this object from the database, returns true on success.
string | $sOxId | Object ID(default null) |
OxidEsales\EshopCommunity\Application\Model\Payment::getBaseBasketPriceForPaymentCostCalc | ( | $oBasket | ) |
Returns base basket price for payment cost calculations. Price depends on payment setup (payment administration)
\OxidEsales\Eshop\Application\Model\Basket | $oBasket | oxBasket object |
OxidEsales\EshopCommunity\Application\Model\Payment::getCountries | ( | ) |
Returns array of country Ids which are assigned to current payment
OxidEsales\EshopCommunity\Application\Model\Payment::getDynValues | ( | ) |
Returns an array of dyn payment values
OxidEsales\EshopCommunity\Application\Model\Payment::getFBruttoPrice | ( | ) |
Returns formatted brutto price.
OxidEsales\EshopCommunity\Application\Model\Payment::getFNettoPrice | ( | ) |
Returns formatted netto price.
OxidEsales\EshopCommunity\Application\Model\Payment::getFPriceVat | ( | ) |
Returns formatted vat value.
OxidEsales\EshopCommunity\Application\Model\Payment::getGroups | ( | ) |
Payment groups getter. Returns groups list
OxidEsales\EshopCommunity\Application\Model\Payment::getPaymentErrorNumber | ( | ) |
Payment error number getter
OxidEsales\EshopCommunity\Application\Model\Payment::getPaymentValue | ( | $dBasePrice | ) |
Returns additional taxes to base article price.
double | $dBasePrice | Base article price |
OxidEsales\EshopCommunity\Application\Model\Payment::getPrice | ( | ) |
Returns calculated price.
OxidEsales\EshopCommunity\Application\Model\Payment::isValidPayment | ( | $aDynValue, | |
$sShopId, | |||
$oUser, | |||
$dBasketPrice, | |||
$sShipSetId | |||
) |
Function checks if loaded payment is valid to current basket
array | $aDynValue | dynamical value (in this case oxidcreditcard and oxiddebitnote are checked only) |
string | $sShopId | id of current shop |
\OxidEsales\Eshop\Application\Model\User | $oUser | the current user |
double | $dBasketPrice | the current basket price (oBasket->dPrice) |
string | $sShipSetId | the current ship set |
OxidEsales\EshopCommunity\Application\Model\Payment::setDynValue | ( | $oKey, | |
$oVal | |||
) |
Sets a single dyn value
mixed | $oKey | the key |
mixed | $oVal | the value |
OxidEsales\EshopCommunity\Application\Model\Payment::setDynValues | ( | $aDynValues | ) |
sets the dyn values
array | $aDynValues | the array of dy values |
OxidEsales\EshopCommunity\Application\Model\Payment::setPaymentVatOnTop | ( | $blOnTop | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const OxidEsales\EshopCommunity\Application\Model\Payment::PAYMENT_ADDSUMRULE_ALLGOODS = 1 |
const OxidEsales\EshopCommunity\Application\Model\Payment::PAYMENT_ADDSUMRULE_DISCOUNTS = 2 |
const OxidEsales\EshopCommunity\Application\Model\Payment::PAYMENT_ADDSUMRULE_GIFTS = 16 |
const OxidEsales\EshopCommunity\Application\Model\Payment::PAYMENT_ADDSUMRULE_SHIPCOSTS = 8 |
const OxidEsales\EshopCommunity\Application\Model\Payment::PAYMENT_ADDSUMRULE_VOUCHERS = 4 |