Orders & Order Lifecycle

What does MarkPaid do, and which hooks does it fire (settlement, loyalty, digital)?

MarkPaid records that an order has been paid (setting its payment state to Paid) and is idempotent (marking paid twice doesn't double-fire). Crucially it triggers downstream hooks: settlement (the vendor ledger entries for who's owed what), loyalty accrual (awarding the customer's points), and digital-download issuance (granting secure downloads for any digital lines). So…

MarkPaid records that an order has been paid (setting its payment state to Paid) and is idempotent (marking paid twice doesn't double-fire). Crucially it triggers downstream hooks: settlement (the vendor ledger entries for who's owed what), loyalty accrual (awarding the customer's points), and digital-download issuance (granting secure downloads for any digital lines). So "paid" isn't just a flag — it's the event that sets the financial, loyalty, and fulfilment consequences of payment in motion, consistently, whether payment was online, manual, or COD.