Payment_Process
[ class tree: Payment_Process ] [ index: Payment_Process ] [ all elements ]

Class: Payment_Process_Type_CreditCard

Source Location: /Payment_Process-0.6.8/Process/Type/CreditCard.php

Class Overview

Payment_Process_Type
   |
   --Payment_Process_Type_CreditCard

Payment_Process_Type_CreditCard


Author(s):

Version:

  • Release: @package_version@

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 58]
Payment_Process_Type_CreditCard


[ Top ]


Class Variables

$cardNumber =

[line 79]

Credit card number

Type:   string


[ Top ]

$cvv =

[line 88]

Card Verification Value

a.k.a CVV2, CVC, CID


Type:   int


[ Top ]

$expDate =

[line 95]

Card expiry date
  • Var: expiry date in MM/YYYY format

Type:   string


[ Top ]

$type =

[line 72]

Credit card type
  • Var: one of PAYMENT_PROCESS_CC_* constant

Type:   int


[ Top ]



Method Detail

Payment_Process_Type_CreditCard (Constructor)   [line 109]

Payment_Process_Type_CreditCard Payment_Process_Type_CreditCard( )

PHP4-style constructor

[ Top ]

__construct (Constructor)   [line 100]

Payment_Process_Type_CreditCard __construct( )

Class constructor

Overrides Payment_Process_Type::__construct() (parent method not documented)
[ Top ]

_validateCvv   [line 162]

bool _validateCvv( )

Validates the card verification value
  • Return: PEAR_Error is CVV was set and is not valid, TRUE otherwise
  • Access: protected

[ Top ]

_validateExpDate   [line 187]

boolean _validateExpDate( )

Validate the card's expiration date.
  • Return: true on success, false otherwise
  • Author: Joe Stump <joe@joestump.net>
  • Todo: Fix YxK issues; an expyear of '99' will come up as valid.
  • Access: protected

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:41:22 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.