public static function Braintree_Http::delete in Commerce Braintree 7
3 calls to Braintree_Http::delete()
- Braintree_Address::delete in braintree_php/
lib/ Braintree/ Address.php - delete an address by id
- Braintree_CreditCard::delete in braintree_php/
lib/ Braintree/ CreditCard.php - Braintree_Customer::delete in braintree_php/
lib/ Braintree/ Customer.php - delete a customer by id
File
- braintree_php/
lib/ Braintree/ Http.php, line 15
Class
- Braintree_Http
- processes Http requests using curl
Code
public static function delete($path) {
$response = self::_doRequest('DELETE', $path);
if ($response['status'] === 200) {
return true;
}
else {
Braintree_Util::throwStatusCodeException($response['status']);
}
}