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
Afficher le fichier Open project: braintree/braintree_php Class Usage Examples

Méthodes publiques

Méthode 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 )

Méthodes protégées

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

Private Methods

Méthode Description
_compareCreatedAtOnVerifications ( $verificationAttrib1, $verificationAttrib2 )

Method Details

__toString() public méthode

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

_initialize() protected méthode

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

allCardTypes() public static méthode

public static allCardTypes ( ) : array
Résultat array

create() public static méthode

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

createCreditCardUrl() public static méthode

public static createCreditCardUrl ( )

createFromTransparentRedirect() public static méthode

public static createFromTransparentRedirect ( $queryString )

createNoValidate() public static méthode

public static createNoValidate ( $attribs )

credit() public static méthode

public static credit ( $token, $transactionAttribs )

creditNoValidate() public static méthode

public static creditNoValidate ( $token, $transactionAttribs )

delete() public static méthode

public static delete ( $token )

expired() public static méthode

public static expired ( )

expiringBetween() public static méthode

public static expiringBetween ( $startDate, $endDate )

factory() public static méthode

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

fetchExpired() public static méthode

public static fetchExpired ( $ids )

fetchExpiring() public static méthode

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

find() public static méthode

public static find ( $token )

fromNonce() public static méthode

public static fromNonce ( $nonce )

isDefault() public méthode

returns false if default is null or false
public isDefault ( ) : boolean
Résultat boolean

isEqual() public méthode

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
Résultat boolean

isExpired() public méthode

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

isVenmoSdk() public méthode

checks whether the card is associated with venmo sdk
public isVenmoSdk ( ) : boolean
Résultat boolean

sale() public static méthode

public static sale ( $token, $transactionAttribs )

saleNoValidate() public static méthode

public static saleNoValidate ( $token, $transactionAttribs )

update() public static méthode

public static update ( $token, $attributes )

updateCreditCardUrl() public static méthode

public static updateCreditCardUrl ( )

updateFromTransparentRedirect() public static méthode

public static updateFromTransparentRedirect ( $queryString )

updateNoValidate() public static méthode

public static updateNoValidate ( $token, $attributes )