Repository navigation
Add a Provider-Free Action for Placing an Already-Paid or Zero-Total Order #2744
tazzytazzy
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
|
Would you not use an off-line payment driver, so you can still store the transaction for reporting as cash for example? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
TL;DR
Lunar can create a draft Order from a Cart, but placing that Order currently happens inside payment-driver implementations by writing
placed_at. I need a supported core Action that can place a draft Order after payment has already been confirmed elsewhere, or when the Order legitimately requires no payment.Could Lunar add a small provider-neutral
PlaceOrderorFinalizeOrderPlacementAction and let first-party payment drivers delegate to it? This would give every integration one consistent placed-Order transition.The problem
CreateOrderproduces a draft Order. Stripe'sUpdateOrderFromIntentand the offline payment driver then setplaced_atthemselves. Applications that own payment orchestration outside a Lunar driver have no supported core Action for the final transition.Writing
placed_atdirectly is possible, but it spreads a business-critical transition across drivers and applications. It also makes it harder to define validation, replay behavior, transaction boundaries, andOrderPlacedevent timing consistently.Proposed direction
Add one focused core Action for placing an existing draft Order:
The Action would:
OrderPlacedonly after the transaction commits; andcreatedorreplayeddisposition.The Action should remain neutral about why placement is authorized. A caller might have an authoritative capture from Stripe, PayPal, an offline payment, or a zero-total Order. Lunar should validate its own Order invariants; the caller should remain responsible for payment authority.
First-party payment drivers could use the same Action after their provider work succeeds instead of writing
placed_atindependently.Scope
This is not a request for Lunar to own subscriptions, external payment orchestration, or application-specific checkout policy. It is a request for one supported core transition from draft Order to placed Order.
I can create a PR if you approve of this direction.
All reactions