When submitting a payment terminal form (Payment by Invoice in my case), the following message appears on submit.

Notice: Undefined index: payment_details in commerce_payment_order_transaction_add_form_submit() (line 223 of commerce/modules/payment/includes/commerce_payment.forms.inc).

Comments

jsacksick’s picture

StatusFileSize
new839 bytes

Corrected by adding a form_state['values'] condition before calling the callback.
This error seems to occur because of empty custom form fields like name in example payment for instance.

rszrama’s picture

Status: Needs review » Fixed

Good catch. I expanded it to cover the $form array interaction as well just in case.

Commit: http://drupalcode.org/project/commerce.git/commitdiff/b228950

Status: Fixed » Closed (fixed)

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