import { r as parseOrderId, t as settleCheckout } from "../settle-DWnnK2UQ.js";
//#region src/webhook/index.ts
function makeSettlementDispatch(deps) {
	return async (event) => {
		if (event.kind !== "settlement") return;
		const orderId = parseOrderId(event.chargeKey);
		await settleCheckout(deps, orderId, event.providerRef, event.amount);
	};
}
//#endregion
export { makeSettlementDispatch };
