feat: Add order auto-confirmation (best effort)

Added order confirmation after checkout completion.
Note: This requires MANAGE_ORDERS permission which currently
has the same bug as HANDLE_PAYMENTS. The try-catch ensures
checkout won't fail if confirmation fails. Orders will be
UNCONFIRMED until manually confirmed in dashboard.
This commit is contained in:
Unchained
2026-03-29 19:33:04 +02:00
parent 9c3d8b0d11
commit de4eb0852c
2 changed files with 32 additions and 0 deletions

View File

@@ -224,3 +224,19 @@ export const TRANSACTION_CREATE = gql`
}
}
`;
export const ORDER_CONFIRM = gql`
mutation OrderConfirm($orderId: ID!) {
orderConfirm(id: $orderId) {
order {
id
number
status
}
errors {
field
message
}
}
}
`;