function commerce_cardonfile_data_load in Commerce Card on File 7
Loads stored card data by ID.
Parameters
$card_id: The local ID of the stored card data to load.
Return value
An array containing the specified card data or FALSE if the specified card data does not exist.
1 call to commerce_cardonfile_data_load()
- commerce_cardonfile_data_save in ./
commerce_cardonfile.module - Saves an array of card data.
File
- ./
commerce_cardonfile.module, line 353 - 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_load($card_id) {
return db_select('commerce_card_data', 'ccd')
->fields('ccd')
->condition('ccd.card_id', $card_id)
->execute()
->fetchAssoc();
}