Pay Lunch Order Draft
pay_lunch_order_draftCommit a draft lunch order and charge the wallet for the item total plus an optional tip. Fails without sufficient wallet balance, directing the user to top up and retry.
Instructions
Commits a draft order from create_lunch_order_draft and charges the wallet for the item total plus optional tip_cents (donated to the school's PAC). Wallet-only: if the balance cannot cover the full total, the call fails with an error directing the user to open the Paxaver panel and top up the wallet balance, then retry - no card payment is offered through this tool. Not for new orders - use create_lunch_order_draft first. FINANCIAL - confirm the total before calling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | Draft order ID from create_lunch_order_draft - must still be in draft status; already-finalized orders are rejected | |
| tip_cents | No | Tip in cents (donated to school PAC) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | 'finalized' when the wallet covered the full total | |
| orderId | No | Order ID | |
| tipCents | No | PAC donation added, in cents | |
| itemTotalCents | No | Item total in cents |