Method |
Description |
|
__construct ( $gateway ) |
|
|
__toString ( ) : string |
returns a string representation of the customer |
|
_defaultPaymentMethodFilter ( $paymentMethod ) |
|
|
_doCreate ( string $subPath, array $params ) : mixed |
sends the create request to the gateway |
|
all ( ) |
|
|
create ( array $attribs = [] ) : Braintree_Result_Successful | Braintree_Result_Error |
Creates a customer using the given +attributes+. If :id is not passed,
the gateway will generate it. |
|
createCustomerUrl ( ) : string |
|
|
createFromTransparentRedirect ( $queryString ) : Customer |
create a customer from a TransparentRedirect operation |
|
createNoValidate ( array $attribs = [] ) : Customer |
attempts the create operation assuming all data will validate
returns a Customer object instead of a Result |
|
createSignature ( ) : array |
creates a full array signature of a valid create request |
|
credit ( integer $customerId, array $transactionAttribs ) : Braintree\Result\Successful | Error |
credit a customer for the passed transaction |
|
creditNoValidate ( integer $customerId, array $transactionAttribs ) : Transaction |
credit a customer, assuming validations will pass |
|
defaultPaymentMethod ( ) : CreditCard | braintree\PayPalAccount | braintree\ApplePayCard | braintree\AndroidPayCard |
returns the customer's default payment method |
|
delete ( string $customerId ) |
delete a customer by id |
|
fetch ( $query, $ids ) |
|
|
find ( $id ) : Customer | boolean |
find a customer by id |
|
isEqual ( object $otherCust ) : boolean |
returns false if comparing object is not a Customer,
or is a Customer with a different id |
|
paymentMethods ( ) : array |
returns an array containt all of the customer's payment methods |
|
sale ( string $customerId, array $transactionAttribs ) : Braintree\Result\Successful | Error |
create a new sale for a customer |
|
saleNoValidate ( string $customerId, array $transactionAttribs ) : Transaction |
create a new sale for a customer, assuming validations will pass |
|
search ( mixed $query ) : ResourceCollection |
Returns a ResourceCollection of customers matching the search query. |
|
update ( string $customerId, array $attributes ) : Braintree\Result\Successful | Error |
updates the customer record |
|
updateCustomerUrl ( ) : string |
|
|
updateFromTransparentRedirect ( string $queryString ) : object |
update a customer from a TransparentRedirect operation |
|
updateNoValidate ( string $customerId, array $attributes ) : Customer |
update a customer record, assuming validations will pass |
|
updateSignature ( ) : array |
creates a full array signature of a valid update request |
|