Payment Plugin support capture a boolean value that indicates whether payment should be captured manually or automatically.
This option is working perfectly in plugin (e.g PayPal, Stripe etc) but problem is new order is always created with payment status awaiting it should not be awaiting state when it is already captured this problem is due to hard coded status in newly created order as you see below.
https://github.com/medusajs/medusa/blob/1d91b7429beebd6f09d5027f7f7e1fe74ce3a8ff/packages/medusa/src/services/order.ts#L685-L688
Bug report
Payment Plugin support
capture
a boolean value that indicates whether payment should be captured manually or automatically. This option is working perfectly in plugin (e.g PayPal, Stripe etc) but problem is new order is always created with payment statusawaiting
it should not be awaiting state when it is already captured this problem is due to hard coded status in newly created order as you see below. https://github.com/medusajs/medusa/blob/1d91b7429beebd6f09d5027f7f7e1fe74ce3a8ff/packages/medusa/src/services/order.ts#L685-L688System information
Medusa version (including plugins): v1.20.2 Node.js version: v21.6.1 Database: postgres Operating system: macOS Browser (if relevant):
Steps to reproduce the behavior
capture
true in medusa-config for any payment providerawaiting
payment status