You are here

function commerce_cardonfile_new in Commerce Card on File 7.2

Returns an initialized card entity.

Parameters

$values: An array of values to set, keyed by property name.

Return value

A card entity with all default fields initialized.

4 calls to commerce_cardonfile_new()
commerce_cardonfile_add_any_access in ./commerce_cardonfile.module
Determines if the user can create a card on any payment method.
commerce_cardonfile_menu in ./commerce_cardonfile.module
Implements hook_menu().
commerce_cardonfile_testing_payment_submit_form_submit in tests/commerce_cardonfile_testing/commerce_cardonfile_testing.module
Payment method callback: submit form submission.
commerce_cardonfile_user_access in ./commerce_cardonfile.module
Determines if the current user has access to the account's stored cards.

File

./commerce_cardonfile.module, line 816
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_new(array $values = array()) {
  return entity_create('commerce_cardonfile', $values);
}