You are here

function commerce_cardonfile_data_delete in Commerce Card on File 7

Deletes stored card data by local ID.

Parameters

$card_id: The local ID of the card data to delete.

File

./commerce_cardonfile.module, line 443
Supports card on file functionality for credit card payment methods by associating card data reference IDs from payment gateways with user accounts.

Code

function commerce_cardonfile_data_delete($card_id) {
  db_delete('commerce_card_data')
    ->condition($type, $id)
    ->execute();
}