Skip to content

feat(event): Add order.checkoutStarted event - #46

Merged
osagieomigie merged 1 commit into
masterfrom
osagieomigie/order_checkout_started_event
Sep 29, 2026
Merged

osagieomigie merged 1 commit into
masterfrom
osagieomigie/order_checkout_started_event

Conversation

@osagieomigie

@osagieomigie osagieomigie commented Sep 28, 2026 •

Copy link
Copy Markdown

Changes

Adds the order.checkoutStarted event type to the SDK, so partners can listen for the hand-off from the embed to the prac-pay lab checkout.

Adds the `order.checkoutStarted` event type so partners can listen for
the hand-off to the prac-pay lab checkout from the embed.

- `EVENT_TYPES` gains `order.checkoutStarted`; `OrderPayload` matches the
  payload emitted by hw-admin (EVE-1825).
- `EventListenerPayload` now resolves its `data` through an `EventPayloads`
  lookup instead of a nested conditional, so a new entry in `EVENT_TYPES`
  without a matching payload is a compile error rather than silently
  falling back to `TreatmentPlanPayload`.
- `errorMessage.invalidEventType` picks the new type up automatically via
  `common.availableEventTypes`.
- Both demos register a listener for the new event.

EVE-1834

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@osagieomigie osagieomigie self-assigned this Sep 28, 2026
@osagieomigie
osagieomigie marked this pull request as ready for review September 28, 2026 19:38

@fallenAfter fallenAfter left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@osagieomigie
osagieomigie merged commit 3a01e18 into master Sep 29, 2026
3 checks passed
@osagieomigie
osagieomigie deleted the osagieomigie/order_checkout_started_event branch September 29, 2026 14:58
@fullscript-devops

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 3.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants