PHP Class Braintree\PaymentMethodGateway

== More information ==
Afficher le fichier Open project: braintree/braintree_php Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $gateway )
_doCreate ( string $subPath, array $params ) : mixed sends the create request to the gateway
_doUpdate ( string $subPath, array $params ) : mixed sends the update request to the gateway
create ( $attribs )
createSignature ( )
delete ( $token )
find ( string $token ) : CreditCard | braintree\PayPalAccount find a PaymentMethod by token
grant ( $sharedPaymentMethodToken, $attribs = [] )
revoke ( $sharedPaymentMethodToken )
update ( $token, $attribs )
updateSignature ( )

Private Methods

Méthode Description
_validateId ( string $identifier = null, $identifierType = 'token' ) verifies that a valid payment method identifier is being used
_verifyGatewayResponse ( array $response ) : Braintree\Result\Successful | Error generic method for validating incoming gateway responses
baseSignature ( )

Method Details

__construct() public méthode

public __construct ( $gateway )

_doCreate() public méthode

sends the create request to the gateway
public _doCreate ( string $subPath, array $params ) : mixed
$subPath string
$params array
Résultat mixed

_doUpdate() public méthode

sends the update request to the gateway
public _doUpdate ( string $subPath, array $params ) : mixed
$subPath string
$params array
Résultat mixed

create() public méthode

public create ( $attribs )

createSignature() public static méthode

public static createSignature ( )

delete() public méthode

public delete ( $token )

find() public méthode

find a PaymentMethod by token
public find ( string $token ) : CreditCard | braintree\PayPalAccount
$token string payment method unique id
Résultat CreditCard | braintree\PayPalAccount

grant() public méthode

public grant ( $sharedPaymentMethodToken, $attribs = [] )

revoke() public méthode

public revoke ( $sharedPaymentMethodToken )

update() public méthode

public update ( $token, $attribs )

updateSignature() public static méthode

public static updateSignature ( )