Skip to content

[Bug]: Impossible to create a Payment Collection for a Draft Order #14501

@fxmb

Description

@fxmb

Package.json file

Medusa 2.12.

Node.js version

20

Database and its version

16

Operating system name and version

Linux

Browser name

No response

What happended?

Since a draft order doesnt have an associated cart, and payment collections require a cart ID for their creation, how am I supposed to create a payment collection for a draft order? Should I just create a "dummy" cart that we use just for that or how is this logically working? This seems like this is a logical flaw in the draft order flow or is it not?

Expected behavior

Be able to assign a payment collection to a draft order

Actual behavior

Not possible to create a payment collection for a draft order

Link to reproduction repo

n/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions