Public Member Functions | Protected Member Functions | Protected Attributes

Payment Class Reference

Inheritance diagram for Payment:
Collaboration diagram for Payment:

List of all members.

Public Member Functions

 init ()
 render ()
 changeshipping ()
 validatePayment ()
 getPaymentList ()
 getAllSets ()
 getAllSetsCnt ()
 getEmptyPayment ()
 getPaymentError ()
 getDynDataFiltered ()
 getPaymentErrorText ()
 getDynValue ()
 getCheckedPaymentId ()
 getPaymentCnt ()
 getCreditYears ()
 getTsProtections ()
 getCheckedTsProductId ()
 getBreadCrumb ()
 isPaymentVatSplitted ()

Protected Member Functions

 _setDefaultEmptyPayment ()
 _unsetPaymentErrors ()
 _setValues (&$aPaymentList, $oBasket=null)
 _assignDebitNoteParams ()
 _checkArrValuesEmpty ($aData, $aKeys)
 _filterDynData ()

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 = 'page/checkout/payment.tpl'
 $_blIsOrderStep = true
 $_aTsProducts = null
 $_blDynDataFiltered = false

Detailed Description

Payment manager. Customer payment manager class. Performs payment validation function, etc.

Definition at line 7 of file payment.php.


Member Function Documentation

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

Returns:
null

Definition at line 482 of file payment.php.

Payment._checkArrValuesEmpty ( aData,
aKeys 
) [protected]

Function to check if array values are empty againts given array keys

Parameters:
array $aData array of data to check
array $aKeys array of array indexes
Returns:
bool

Definition at line 583 of file payment.php.

Payment._filterDynData (  )  [protected]

Due to legal reasons probably you are not allowed to store or even handle credit card data. In this case we just delete and forget all submited credit card data from this point. Override this method if you actually want to process credit card data.

Note: You should override this method as setting blStoreCreditCardInfo to true would force storing CC data on shop side (what most often is illegal).

Returns:
null

Definition at line 609 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

Returns:
null

Definition at line 180 of file payment.php.

Payment._setValues ( &$  aPaymentList,
oBasket = null 
) [protected]

Calculate payment cost for each payment. Sould be removed later

Parameters:
array &$aPaymentList payments array
oxBasket $oBasket basket object
Returns:
null

Definition at line 396 of file payment.php.

Payment._unsetPaymentErrors (  )  [protected]

Unsets payment errors from session

Returns:
null

Definition at line 201 of file payment.php.

Payment.changeshipping (  ) 

Changes shipping set to chosen one. Sets basket status to not up-to-date, which later forces to recalculate it

Returns:
null

Definition at line 227 of file payment.php.

Payment.getAllSets (  ) 

Template variable getter. Returns all delivery sets

Returns:
array

Definition at line 359 of file payment.php.

Payment.getAllSetsCnt (  ) 

Template variable getter. Returns number of delivery sets

Returns:
integer

Definition at line 376 of file payment.php.

Payment.getBreadCrumb (  ) 

Returns Bread Crumb - you are here page1/page2/page3...

Returns:
array

Reimplemented from oxUBase.

Definition at line 704 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.

Returns:
string

Definition at line 506 of file payment.php.

Payment.getCheckedTsProductId (  ) 

Template variable getter. Returns payment list count

Returns:
integer

Definition at line 688 of file payment.php.

Payment.getCreditYears (  ) 

Template variable getter. Returns array of years for credit cards

Returns:
array

Definition at line 565 of file payment.php.

Payment.getDynDataFiltered (  ) 

Dyndata filter marker getter. Returns if dyndata is filtered

Returns:
boolean

Definition at line 434 of file payment.php.

Payment.getDynValue (  ) 

Template variable getter. Returns dyn values

Returns:
array

Definition at line 454 of file payment.php.

Payment.getEmptyPayment (  ) 

Template variable getter. Returns payment object "oxempty"

Returns:
object

Definition at line 414 of file payment.php.

Payment.getPaymentCnt (  ) 

Template variable getter. Returns payment list count

Returns:
integer

Definition at line 548 of file payment.php.

Payment.getPaymentError (  ) 

Template variable getter. Returns error of payments

Returns:
string

Definition at line 424 of file payment.php.

Payment.getPaymentErrorText (  ) 

Template variable getter. Returns error text of payments

Returns:
string

Definition at line 444 of file payment.php.

Payment.getPaymentList (  ) 

Template variable getter. Returns paymentlist

Returns:
object

Reimplemented from oxUBase.

Definition at line 328 of file payment.php.

Payment.getTsProtections (  ) 

Template variable getter. Returns payment list count

Returns:
integer

Definition at line 669 of file payment.php.

Payment.init (  ) 

Executes parent method parent.init().

Returns:
null

Reimplemented from oxUBase.

Definition at line 105 of file payment.php.

Payment.isPaymentVatSplitted (  ) 

Retuns config true if Vat is splitted

Returns:
array

Definition at line 723 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.

Returns:
string current template file name

Reimplemented from oxUBase.

Definition at line 122 of file payment.php.

Payment.validatePayment (  ) 

Validates oxidcreditcard and oxiddebitnote user payment data. Returns null if problems on validating occured. If everything is OK - returns "order" and redirects to payment confirmation page.

Session variables: paymentid, dynvalue, payerror

Returns:
mixed

Definition at line 248 of file payment.php.


Member Data Documentation

Payment.$_aAllSets = null [protected]

Definition at line 25 of file payment.php.

Payment.$_aCreditYears = null [protected]

Definition at line 73 of file payment.php.

Payment.$_aDynValue = null [protected]

Definition at line 55 of file payment.php.

Payment.$_aTsProducts = null [protected]

Definition at line 91 of file payment.php.

Payment.$_blDynDataFiltered = false [protected]

Definition at line 97 of file payment.php.

Payment.$_blIsOrderStep = true [protected]

Reimplemented from oxUBase.

Definition at line 85 of file payment.php.

Payment.$_iAllSetsCnt = null [protected]

Definition at line 31 of file payment.php.

Payment.$_iPaymentCnt = null [protected]

Definition at line 19 of file payment.php.

Payment.$_oEmptyPayment = null [protected]

Definition at line 37 of file payment.php.

Payment.$_oPaymentList = null [protected]

Definition at line 13 of file payment.php.

Payment.$_sCheckedId = null [protected]

Definition at line 61 of file payment.php.

Payment.$_sCheckedPaymentId = null [protected]

Definition at line 67 of file payment.php.

Payment.$_sPaymentError = null [protected]

Definition at line 43 of file payment.php.

Payment.$_sPaymentErrorText = null [protected]

Definition at line 49 of file payment.php.

Payment.$_sThisTemplate = 'page/checkout/payment.tpl' [protected]

Reimplemented from oxView.

Definition at line 79 of file payment.php.


The documentation for this class was generated from the following file: