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
파일 보기 프로젝트 열기: braintree/braintree_php 1 사용 예제들

공개 메소드들

메소드 설명
__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 )