PHP Класс Braintree\PaymentMethodGateway

== More information ==
Показать файл Открыть проект Примеры использования класса

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

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

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

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

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

__construct() публичный метод

public __construct ( $gateway )

_doCreate() публичный метод

sends the create request to the gateway
public _doCreate ( string $subPath, array $params ) : mixed
$subPath string
$params array
Результат mixed

_doUpdate() публичный метод

sends the update request to the gateway
public _doUpdate ( string $subPath, array $params ) : mixed
$subPath string
$params array
Результат mixed

create() публичный метод

public create ( $attribs )

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

public static createSignature ( )

delete() публичный метод

public delete ( $token )

find() публичный метод

find a PaymentMethod by token
public find ( string $token ) : CreditCard | braintree\PayPalAccount
$token string payment method unique id
Результат CreditCard | braintree\PayPalAccount

grant() публичный метод

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

revoke() публичный метод

public revoke ( $sharedPaymentMethodToken )

update() публичный метод

public update ( $token, $attribs )

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

public static updateSignature ( )