public static function Braintree_Customer::delete in Commerce Braintree 7
delete a customer by id
Parameters
string $customerId:
1 call to Braintree_Customer::delete()
- Braintree_CustomerTest::testDelete_deletesTheCustomer in braintree_php/
tests/ integration/ CustomerTest.php
File
- braintree_php/
lib/ Braintree/ Customer.php, line 244
Class
- Braintree_Customer
- Creates and manages Customers
Code
public static function delete($customerId) {
self::_validateId($customerId);
Braintree_Http::delete('/customers/' . $customerId);
return new Braintree_Result_Successful();
}