To simulate the problem:-
1. Enable non-fieldable payment method such as commerce_payment_example
2. Enable a fieldable payment method.
3. Change the payment method weight to make the fieldable payment method come before non-fieldable payment method at checkout form
4. At checkout form, select non-fieldable payment method and click next. The below error would come out.

Notice: Undefined index: transaction in commerce_payment_fields_commerce_payment_pane_checkout_form_validateblockquote) (line 58 of sites/all/modules/commerce_payment_fields/includes/commerce_payment_fields.checkout_pane.inc).
EntityMalformedException: Missing bundle property on entity of type commerce_payment_transaction. in entity_extract_ids() (line 7734 of /includes/common.inc).

Comments

  • vasike committed 2a3c580 on 7.x-1.x
    Issue #2294579 by khayong, vasike: Fix for Non-fieldable payment method...
vasike’s picture

Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Status: Active » Fixed

indeed critical bug.
Thank you Sir.

there is a commit that should solve this.

Status: Fixed » Closed (fixed)

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