PHP Class Braintree\CreditCard

== More information == For more detailed information on CreditCards, see {@link http://www.braintreepayments.com/gateway/credit-card-api http://www.braintreepaymentsolutions.com/gateway/credit-card-api}
For more detailed information on CreditCard verifications, see {@link http://www.braintreepayments.com/gateway/credit-card-verification-api http://www.braintreepaymentsolutions.com/gateway/credit-card-verification-api}
Inheritance: extends braintree\Base
Mostrar archivo Open project: braintree/braintree_php Class Usage Examples

Public Methods

Method Description
__toString ( ) : string create a printable representation of the object as: ClassName[property=value, property=value]
allCardTypes ( ) : array
create ( $attribs ) static methods redirecting to gateway
createCreditCardUrl ( )
createFromTransparentRedirect ( $queryString )
createNoValidate ( $attribs )
credit ( $token, $transactionAttribs )
creditNoValidate ( $token, $transactionAttribs )
delete ( $token )
expired ( )
expiringBetween ( $startDate, $endDate )
factory ( $attributes ) : CreditCard factory method: returns an instance of CreditCard to the requesting method, with populated properties
fetchExpired ( $ids )
fetchExpiring ( $startDate, $endDate, $ids )
find ( $token )
fromNonce ( $nonce )
isDefault ( ) : boolean returns false if default is null or false
isEqual ( object $otherCreditCard ) : boolean returns false if comparing object is not a CreditCard, or is a CreditCard with a different id
isExpired ( ) : boolean checks whether the card is expired based on the current date
isVenmoSdk ( ) : boolean checks whether the card is associated with venmo sdk
sale ( $token, $transactionAttribs )
saleNoValidate ( $token, $transactionAttribs )
update ( $token, $attributes )
updateCreditCardUrl ( )
updateFromTransparentRedirect ( $queryString )
updateNoValidate ( $token, $attributes )

Protected Methods

Method Description
_initialize ( array $creditCardAttribs ) : void sets instance properties from an array of values

Private Methods

Method Description
_compareCreatedAtOnVerifications ( $verificationAttrib1, $verificationAttrib2 )

Method Details

__toString() public method

create a printable representation of the object as: ClassName[property=value, property=value]
public __toString ( ) : string
return string

_initialize() protected method

sets instance properties from an array of values
protected _initialize ( array $creditCardAttribs ) : void
$creditCardAttribs array array of creditcard data
return void

allCardTypes() public static method

public static allCardTypes ( ) : array
return array

create() public static method

static methods redirecting to gateway
public static create ( $attribs )

createCreditCardUrl() public static method

public static createCreditCardUrl ( )

createFromTransparentRedirect() public static method

public static createFromTransparentRedirect ( $queryString )

createNoValidate() public static method

public static createNoValidate ( $attribs )

credit() public static method

public static credit ( $token, $transactionAttribs )

creditNoValidate() public static method

public static creditNoValidate ( $token, $transactionAttribs )

delete() public static method

public static delete ( $token )

expired() public static method

public static expired ( )

expiringBetween() public static method

public static expiringBetween ( $startDate, $endDate )

factory() public static method

factory method: returns an instance of CreditCard to the requesting method, with populated properties
public static factory ( $attributes ) : CreditCard
return CreditCard

fetchExpired() public static method

public static fetchExpired ( $ids )

fetchExpiring() public static method

public static fetchExpiring ( $startDate, $endDate, $ids )

find() public static method

public static find ( $token )

fromNonce() public static method

public static fromNonce ( $nonce )

isDefault() public method

returns false if default is null or false
public isDefault ( ) : boolean
return boolean

isEqual() public method

returns false if comparing object is not a CreditCard, or is a CreditCard with a different id
public isEqual ( object $otherCreditCard ) : boolean
$otherCreditCard object customer to compare against
return boolean

isExpired() public method

checks whether the card is expired based on the current date
public isExpired ( ) : boolean
return boolean

isVenmoSdk() public method

checks whether the card is associated with venmo sdk
public isVenmoSdk ( ) : boolean
return boolean

sale() public static method

public static sale ( $token, $transactionAttribs )

saleNoValidate() public static method

public static saleNoValidate ( $token, $transactionAttribs )

update() public static method

public static update ( $token, $attributes )

updateCreditCardUrl() public static method

public static updateCreditCardUrl ( )

updateFromTransparentRedirect() public static method

public static updateFromTransparentRedirect ( $queryString )

updateNoValidate() public static method

public static updateNoValidate ( $token, $attributes )