justifi-tech / web-component-library

Web components built using StencilJS
MIT License
2 stars 3 forks source link

Handle Checkout status in Checkout component #639

Closed jakemer closed 2 weeks ago

jakemer commented 1 month ago

When the Checkout component fetches the checkout, check the checkout status. If the status is expired or completed we should emit an error event from the component so the implementer can handle them.

The error events should be distinguishable from each other so that they can be handled differently. For example an implementer might re-route to a receipt if the checkout is completed or 404 page if the checkout is expired