You are here

public static function Braintree_CreditCard::delete in Commerce Braintree 7

2 calls to Braintree_CreditCard::delete()
Braintree_CreditCardTest::testDelete_deletesThePaymentMethod in braintree_php/tests/integration/CreditCardTest.php
commerce_braintree_cardonfile_update_delete in ./commerce_braintree.module
Callback for card on file update or delete.

File

braintree_php/lib/Braintree/CreditCard.php, line 370

Class

Braintree_CreditCard
Creates and manages Braintree CreditCards

Code

public static function delete($token) {
  self::_validateId($token);
  Braintree_Http::delete('/payment_methods/' . $token);
  return new Braintree_Result_Successful();
}