This error is due to non-standard credit card type found in some modules like commerce hosted pci.

Notice: Undefined index: card in commerce_cardonfile_card_form() (line 96 of commerce_cardonfile/includes/commerce_cardonfile.pages.inc).

Rolling a patch to perform a check.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arknoll’s picture

Assigned: arknoll » Unassigned
Status: Active » Needs review
FileSize
1008 bytes

Patch attached.

mesch’s picture

+1. This is a problem for the commerce_cardonfile support I wrote for Stripe (https://drupal.org/node/1541074) because the module doesn't actually see the full card details, including the name. It stores the type returned from Stripe, not as determined by DC.

bojanz’s picture

Issue summary: View changes
Status: Needs review » Fixed

Removed that field completely in
http://drupalcode.org/project/commerce_cardonfile.git/commitdiff/f3774f5

The same code in the entity label callback has the isset() check.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.