

Definition at line 12 of file payment.php.
Public Member Functions | |
| init () | |
| render () | |
| changeshipping () | |
| validatePayment () | |
| getPaymentList () | |
| getAllSets () | |
| getAllSetsCnt () | |
| getEmptyPayment () | |
| getPaymentError () | |
| getPaymentErrorText () | |
| getDynValue () | |
| getCheckedPaymentId () | |
| getPaymentCnt () | |
| getCreditYears () | |
Protected Member Functions | |
| _setDefaultEmptyPayment () | |
| _unsetPaymentErrors () | |
| _setDeprecatedValues (&$aPaymentList, $oBasket=null) | |
| _assignDebitNoteParams () | |
Protected Attributes | |
| $_oPaymentList = null | |
| $_iPaymentCnt = null | |
| $_aAllSets = null | |
| $_iAllSetsCnt = null | |
| $_oEmptyPayment = null | |
| $_sPaymentError = null | |
| $_sPaymentErrorText = null | |
| $_aDynValue = null | |
| $_sCheckedId = null | |
| $_sCheckedPaymentId = null | |
| $_aCreditYears = null | |
| $_sThisTemplate = 'payment.tpl' | |
| $_blIsOrderStep = true | |
| Payment.init | ( | ) |
Executes parent method parent.init().
Reimplemented from oxUBase.
Definition at line 97 of file payment.php.
| Payment.render | ( | ) |
Executes parent.render(), checks if this connection secure (if not - redirects to secure payment page), loads user object (if user object loading was not successfull - redirects to start page), loads user delivery/shipping information. According to configuration in admin, user profile data loads delivery sets, and possible payment methods. Returns name of template to render payment._sThisTemplate.
Template variables: allShipsetsCnt, allShipsets, payments, payerror, payerrortext, dynvalue, defpaymentid, basket, deladr
Reimplemented from oxUBase.
Definition at line 122 of file payment.php.
| Payment._setDefaultEmptyPayment | ( | ) | [protected] |
Set default empty payment. If config param 'blOtherCountryOrder' is on, tries to set 'oxempty' payment to aViewData['oxemptypayment']. On error sets aViewData['payerror'] to -2
Definition at line 187 of file payment.php.
| Payment._unsetPaymentErrors | ( | ) | [protected] |
| Payment.changeshipping | ( | ) |
Changes shipping set to chosen one. Sets basket status to not up-to-date, which later forces to recalculate it
Definition at line 230 of file payment.php.
| Payment.validatePayment | ( | ) |
Validates oxidcreditcard and oxiddebitnote user payment data. Returns false if problems on validating occured. If everything is OK - returns "order" and redirects to payment confirmation page.
Session variables: paymentid, dynvalue, payerror
Definition at line 253 of file payment.php.
| Payment.getPaymentList | ( | ) |
Template variable getter. Returns paymentlist
Reimplemented from oxUBase.
Definition at line 310 of file payment.php.
| Payment.getAllSets | ( | ) |
Template variable getter. Returns all delivery sets
Definition at line 336 of file payment.php.
| Payment.getAllSetsCnt | ( | ) |
Template variable getter. Returns number of delivery sets
Definition at line 353 of file payment.php.
| Payment._setDeprecatedValues | ( | &$ | aPaymentList, | |
| $ | oBasket = null | |||
| ) | [protected] |
Calculate payment cost for each payment. Sould be removed later
| array | &$aPaymentList payments array | |
| oxBasket | $oBasket basket object |
Definition at line 373 of file payment.php.
| Payment.getEmptyPayment | ( | ) |
Template variable getter. Returns payment object "oxempty"
Definition at line 394 of file payment.php.
| Payment.getPaymentError | ( | ) |
Template variable getter. Returns error of payments
Definition at line 404 of file payment.php.
| Payment.getPaymentErrorText | ( | ) |
Template variable getter. Returns error text of payments
Definition at line 414 of file payment.php.
| Payment.getDynValue | ( | ) |
Template variable getter. Returns dyn values
Definition at line 424 of file payment.php.
| Payment._assignDebitNoteParams | ( | ) | [protected] |
Assign debit note payment values to view data. Loads user debit note payment if available and assigns payment data to $this->_aDynValue
Definition at line 452 of file payment.php.
| Payment.getCheckedPaymentId | ( | ) |
Get checked payment ID. Tries to get checked payment ID from session, if fails, then tries to get payment ID from last order.
Definition at line 476 of file payment.php.
| Payment.getPaymentCnt | ( | ) |
Template variable getter. Returns payment list count
Definition at line 515 of file payment.php.
| Payment.getCreditYears | ( | ) |
Template variable getter. Returns array of years for credit cards
Definition at line 532 of file payment.php.
Payment.$_oPaymentList = null [protected] |
Definition at line 18 of file payment.php.
Payment.$_iPaymentCnt = null [protected] |
Definition at line 24 of file payment.php.
Payment.$_aAllSets = null [protected] |
Definition at line 30 of file payment.php.
Payment.$_iAllSetsCnt = null [protected] |
Definition at line 36 of file payment.php.
Payment.$_oEmptyPayment = null [protected] |
Definition at line 42 of file payment.php.
Payment.$_sPaymentError = null [protected] |
Definition at line 48 of file payment.php.
Payment.$_sPaymentErrorText = null [protected] |
Definition at line 54 of file payment.php.
Payment.$_aDynValue = null [protected] |
Definition at line 60 of file payment.php.
Payment.$_sCheckedId = null [protected] |
Definition at line 66 of file payment.php.
Payment.$_sCheckedPaymentId = null [protected] |
Definition at line 72 of file payment.php.
Payment.$_aCreditYears = null [protected] |
Definition at line 78 of file payment.php.
Payment.$_sThisTemplate = 'payment.tpl' [protected] |
Payment.$_blIsOrderStep = true [protected] |
1.5.5