PHP 클래스 Braintree\CreditCardGateway

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

공개 메소드들

메소드 설명
__construct ( $gateway )
_doCreate ( string $subPath, array $params ) : mixed sends the create request to the gateway
billingAddressSignature ( )
create ( $attribs )
createCreditCardUrl ( ) : string
createFromTransparentRedirect ( $queryString ) : Braintree\Result\Successful | Error create a customer from a TransparentRedirect operation
createNoValidate ( array $attribs ) : CreditCard attempts the create operation assuming all data will validate returns a CreditCard object instead of a Result
createSignature ( )
credit ( $token, $transactionAttribs ) : Braintree\Result\Successful | Error create a credit on the card for the passed transaction
creditNoValidate ( $token, $transactionAttribs ) : Transaction create a credit on this card, assuming validations will pass
delete ( $token )
expired ( ) : ResourceCollection returns a ResourceCollection of expired credit cards
expiringBetween ( $startDate, $endDate ) : ResourceCollection returns a ResourceCollection of credit cards expiring between start/end
fetchExpired ( $ids )
fetchExpiring ( $startDate, $endDate, $ids )
find ( string $token ) : CreditCard find a creditcard by token
fromNonce ( string $nonce ) : CreditCard Convert a payment method nonce to a credit card
sale ( string $token, array $transactionAttribs ) : Braintree\Result\Successful | Error create a new sale for the current card
saleNoValidate ( string $token, array $transactionAttribs ) : Transaction create a new sale using this card, assuming validations will pass
update ( string $token, array $attributes ) : Braintree\Result\Successful | Error updates the creditcard record
updateCreditCardUrl ( ) : string
updateFromTransparentRedirect ( $queryString ) : object update a customer from a TransparentRedirect operation
updateNoValidate ( string $token, array $attributes ) : CreditCard update a creditcard record, assuming validations will pass
updateSignature ( )

비공개 메소드들

메소드 설명
_doUpdate ( $httpVerb, $subPath, array $params ) : mixed sends the update request to the gateway
_validateId ( string $identifier = null, $identifierType = "token" ) verifies that a valid credit card identifier is being used
_verifyGatewayResponse ( array $response ) : Braintree\Result\Successful | Error generic method for validating incoming gateway responses
baseOptions ( )
baseSignature ( $options )

메소드 상세

__construct() 공개 메소드

public __construct ( $gateway )

_doCreate() 공개 메소드

sends the create request to the gateway
public _doCreate ( string $subPath, array $params ) : mixed
$subPath string
$params array
리턴 mixed

billingAddressSignature() 공개 정적인 메소드

public static billingAddressSignature ( )

create() 공개 메소드

public create ( $attribs )

createCreditCardUrl() 공개 메소드

사용 중단: since version 2.3.0
public createCreditCardUrl ( ) : string
리턴 string

createFromTransparentRedirect() 공개 메소드

create a customer from a TransparentRedirect operation
사용 중단: since version 2.3.0
public createFromTransparentRedirect ( $queryString ) : Braintree\Result\Successful | Error
리턴 Braintree\Result\Successful | Braintree\Result\Error

createNoValidate() 공개 메소드

attempts the create operation assuming all data will validate returns a CreditCard object instead of a Result
public createNoValidate ( array $attribs ) : CreditCard
$attribs array
리턴 CreditCard

createSignature() 공개 정적인 메소드

public static createSignature ( )

credit() 공개 메소드

create a credit on the card for the passed transaction
public credit ( $token, $transactionAttribs ) : Braintree\Result\Successful | Error
리턴 Braintree\Result\Successful | Braintree\Result\Error

creditNoValidate() 공개 메소드

returns a Transaction object on success
public creditNoValidate ( $token, $transactionAttribs ) : Transaction
리턴 Transaction

delete() 공개 메소드

public delete ( $token )

expired() 공개 메소드

returns a ResourceCollection of expired credit cards
public expired ( ) : ResourceCollection
리턴 ResourceCollection

expiringBetween() 공개 메소드

returns a ResourceCollection of credit cards expiring between start/end
public expiringBetween ( $startDate, $endDate ) : ResourceCollection
리턴 ResourceCollection

fetchExpired() 공개 메소드

public fetchExpired ( $ids )

fetchExpiring() 공개 메소드

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

find() 공개 메소드

find a creditcard by token
public find ( string $token ) : CreditCard
$token string credit card unique id
리턴 CreditCard

fromNonce() 공개 메소드

Convert a payment method nonce to a credit card
public fromNonce ( string $nonce ) : CreditCard
$nonce string payment method nonce
리턴 CreditCard

sale() 공개 메소드

create a new sale for the current card
또한 보기: Transaction::sale()
public sale ( string $token, array $transactionAttribs ) : Braintree\Result\Successful | Error
$token string
$transactionAttribs array
리턴 Braintree\Result\Successful | Braintree\Result\Error

saleNoValidate() 공개 메소드

returns a Transaction object on success
또한 보기: Transaction::sale()
public saleNoValidate ( string $token, array $transactionAttribs ) : Transaction
$token string
$transactionAttribs array
리턴 Transaction

update() 공개 메소드

if calling this method in context, $token is the 2nd attribute. $token is not sent in object context.
public update ( string $token, array $attributes ) : Braintree\Result\Successful | Error
$token string (optional)
$attributes array
리턴 Braintree\Result\Successful | Braintree\Result\Error

updateCreditCardUrl() 공개 메소드

public updateCreditCardUrl ( ) : string
리턴 string

updateFromTransparentRedirect() 공개 메소드

update a customer from a TransparentRedirect operation
사용 중단: since version 2.3.0
public updateFromTransparentRedirect ( $queryString ) : object
리턴 object

updateNoValidate() 공개 메소드

if calling this method in context, $token is the 2nd attribute. $token is not sent in object context. returns a CreditCard object on success
public updateNoValidate ( string $token, array $attributes ) : CreditCard
$token string
$attributes array
리턴 CreditCard

updateSignature() 공개 정적인 메소드

public static updateSignature ( )