PHP Класс 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}
Наследование: extends braintree\Base
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 )

Защищенные методы

Метод Описание
_initialize ( array $creditCardAttribs ) : void sets instance properties from an array of values

Приватные методы

Метод Описание
_compareCreatedAtOnVerifications ( $verificationAttrib1, $verificationAttrib2 )

Описание методов

__toString() публичный Метод

create a printable representation of the object as: ClassName[property=value, property=value]
public __toString ( ) : string
Результат string

_initialize() защищенный Метод

sets instance properties from an array of values
protected _initialize ( array $creditCardAttribs ) : void
$creditCardAttribs array array of creditcard data
Результат void

allCardTypes() публичный статический Метод

public static allCardTypes ( ) : array
Результат array

create() публичный статический Метод

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

createCreditCardUrl() публичный статический Метод

public static createCreditCardUrl ( )

createFromTransparentRedirect() публичный статический Метод

public static createFromTransparentRedirect ( $queryString )

createNoValidate() публичный статический Метод

public static createNoValidate ( $attribs )

credit() публичный статический Метод

public static credit ( $token, $transactionAttribs )

creditNoValidate() публичный статический Метод

public static creditNoValidate ( $token, $transactionAttribs )

delete() публичный статический Метод

public static delete ( $token )

expired() публичный статический Метод

public static expired ( )

expiringBetween() публичный статический Метод

public static expiringBetween ( $startDate, $endDate )

factory() публичный статический Метод

factory method: returns an instance of CreditCard to the requesting method, with populated properties
public static factory ( $attributes ) : CreditCard
Результат CreditCard

fetchExpired() публичный статический Метод

public static fetchExpired ( $ids )

fetchExpiring() публичный статический Метод

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

find() публичный статический Метод

public static find ( $token )

fromNonce() публичный статический Метод

public static fromNonce ( $nonce )

isDefault() публичный Метод

returns false if default is null or false
public isDefault ( ) : boolean
Результат boolean

isEqual() публичный Метод

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
Результат boolean

isExpired() публичный Метод

checks whether the card is expired based on the current date
public isExpired ( ) : boolean
Результат boolean

isVenmoSdk() публичный Метод

checks whether the card is associated with venmo sdk
public isVenmoSdk ( ) : boolean
Результат boolean

sale() публичный статический Метод

public static sale ( $token, $transactionAttribs )

saleNoValidate() публичный статический Метод

public static saleNoValidate ( $token, $transactionAttribs )

update() публичный статический Метод

public static update ( $token, $attributes )

updateCreditCardUrl() публичный статический Метод

public static updateCreditCardUrl ( )

updateFromTransparentRedirect() публичный статический Метод

public static updateFromTransparentRedirect ( $queryString )

updateNoValidate() публичный статический Метод

public static updateNoValidate ( $token, $attributes )