function commerce_braintree_load_cardonfile_data in Commerce Braintree 7
Loads stored card data by user and ID.
Parameters
int $uid: The user ID of the user's stored card data to load.
int $card_id: The local ID of the stored card data to load.
Return value
array An array containing the specified card data or FALSE if the specified card data does not exist.
1 call to commerce_braintree_load_cardonfile_data()
- commerce_braintree_cof_redirect_form in ./
commerce_braintree.commerce_braintree_cof.inc - Payment method callback: redirect form.
File
- ./
commerce_braintree.commerce_braintree_cof.inc, line 183 - Include payment method settings callback, redirect form callbacks...
Code
function commerce_braintree_load_cardonfile_data($uid, $card_id) {
return db_select('commerce_card_data', 'ccd')
->fields('ccd')
->condition('ccd.uid', $uid)
->condition('ccd.card_id', $card_id)
->execute()
->fetchAssoc();
}