Describe your bug or feature request.

While checking out, if I have an already saved Payment method, then it is giving Error, that no bundle found in PaymentOptionsBuilder on Line 67, I checked and found that, it doesnot have key "payment_method_type_id". But on adding this, and checking, the credit card form is still showing on Payment Page, even though already saved Credit Card is currently selected.

Issue seems to be buildPaymentMethodForm function in PaymentInformation.php. In prev. commerce release there was a condition of

if ($payment_option->getPaymentMethodId() && !$payment_option->getPaymentMethodTypeId()) {

which returns the pane_form, but it was removed in current releases.

If a bug, provide steps to reproduce it from a clean install.

Comments

manojbisht_drupal created an issue. See original summary.

manojbisht_drupal’s picture

StatusFileSize
new1022 bytes

Attached is the patch for the same

manojbisht_drupal’s picture

Status: Active » Needs review
jsacksick’s picture

Could you pinpoint the code that was removed? There might be a reason for that?

jsacksick’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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