Problem/Motivation

Entity reference fields payment_gateway and payment_method are required in commerce_order.
Those fields are never required in UI (and making order from BO or FO).

In another hand, this required fields make rest resource creation fail because they are required and there is no way to bypass this.

I don't see reasons to make them required since order is created at first as cart wihtout data in those fields, and add them later (if needed, but not necessary).

Proposed resolution

Make payment_gateway and payment_method entity reference fields of commerce_order optional.

Comments

GoZ created an issue. See original summary.

goz’s picture

Status: Active » Needs review
bojanz’s picture

Title: Set payment_gateway and payment_method fields optional in commerce_order » Make payment_gateway and payment_method order fields optional

  • bojanz committed 016a661 on 8.x-2.x
    Issue #2917571: Make payment_gateway and payment_method order fields...
bojanz’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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