Skip to content

feat: embeddable Checkout widget <PactoCheckout/>#25

Merged
aguilar1x merged 2 commits into
PACTO-LAT:mainfrom
fabicabvq06:feat/react-checkout-widget
Jun 19, 2026
Merged

feat: embeddable Checkout widget <PactoCheckout/>#25
aguilar1x merged 2 commits into
PACTO-LAT:mainfrom
fabicabvq06:feat/react-checkout-widget

Conversation

@fabicabvq06

@fabicabvq06 fabicabvq06 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Closes #15

Summary

  • <PactoCheckout/> modal widget with full buy flow: select listing → deposit → upload fiat receipt (SINPE/SPEI) → track until release
  • useCheckoutFlow hook orchestrating session, REST client, and real-time escrow events
  • SDK additions: escrows.deposit() and escrows.reportFiatPayment()
  • Accessibility: focus trap, ESC to close, ARIA dialog roles
  • E2E integration tests with mocked Gateway (fetch + SSE)

Test plan

  • npm run check
  • npm run test
  • npm run build

- Add deposit() and reportFiatPayment() to SDK escrows resource
- Implement PactoCheckout modal with full buy flow (listing → deposit → receipt → tracking)
- Add useCheckoutFlow hook orchestrating session, API, and SSE events
- Accessibility: focus trap, ESC to close, ARIA dialog roles
- Integration tests with mocked Gateway (fetch + SSE) and a11y coverage

Closes PACTO-LAT#15
@aguilar1x aguilar1x changed the title feat(react): embeddable Checkout widget <PactoCheckout/> feat: embeddable Checkout widget <PactoCheckout/> Jun 19, 2026
@aguilar1x aguilar1x merged commit e30e999 into PACTO-LAT:main Jun 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(react): embeddable Checkout widget <PactoCheckout/>

2 participants