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

Class: Payment_Process2_Type_CreditCard

Source Location: /Payment_Process2-0.3.1/Payment/Process2/Type/CreditCard.php

Class Overview

Payment_Process2_Type
   |
   --Payment_Process2_Type_CreditCard

Payment_Process2_Type_CreditCard


Author(s):

Version:

  • Release: @package_version@

Variables

Methods


Child classes:

Payment_Process2_Type_MockCreditCard
Payment_Process2_Type_CreditCard

Inherited Variables

Inherited Methods


Class Details

[line 62]
Payment_Process2_Type_CreditCard


[ Top ]


Class Variables

$cardNumber =

[line 83]

Credit card number

Type:   string


[ Top ]

$cvv =

[line 92]

Card Verification Value

a.k.a CVV2, CVC, CID


Type:   int


[ Top ]

$expDate =

[line 99]

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

Type:   string


[ Top ]

$timestamp =

[line 101]

  • Access: protected

Type:   mixed


[ Top ]

$type =

[line 76]

Credit card type
  • Var: one of Payment_Process2_Type::CC_* constant

Type:   int


[ Top ]



Method Detail

__construct (Constructor)   [line 263]

Payment_Process2_Type_CreditCard __construct( [int $timestamp = null])

Class constructor
  • Access: public

Parameters:

int   $timestamp   —  A unix timestamp representing the time. If absent, defaults to time()

[ Top ]

setDate   [line 254]

void setDate( int $timestamp)

  • Access: public

Parameters:

int   $timestamp   —  A unix timestamp representing the time.

[ Top ]

_validateCvv   [line 154]

bool _validateCvv( )

Validates the card verification value
  • Throws: Payment_Process2_Exception
  • Access: protected

[ Top ]

_validateExpDate   [line 180]

bool _validateExpDate( )

Validate the card's expiration date.
  • Author: Joe Stump <joe@joestump.net>
  • Todo: Fix YxK issues; an expyear of '99' will come up as valid.
  • Throws: Payment_Process2_Exception
  • Access: protected

[ Top ]


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