Skip to content

feature(checkout): mock core api server#676

Draft
tomiiide wants to merge 5 commits intomainfrom
feature/emb-301-mock-core-onramp
Draft

feature(checkout): mock core api server#676
tomiiide wants to merge 5 commits intomainfrom
feature/emb-301-mock-core-onramp

Conversation

@tomiiide
Copy link
Contributor

Which Linear task is linked to this PR?

https://linear.app/lifi-linear/issue/EMB-301/mock-core-onramp-session-endpoint-for-widget-development

Why was it implemented this way?

Visual showcase (Screenshots or Videos)

If applicable, attach screenshots, GIFs, or videos to showcase the functionality, UI changes, or bug fixes.

Checklist before requesting a review

  • I have performed a self-review and testing of my code.
  • This pull request is focused and addresses a single problem.
  • If this PR modifies the Widget API or adds new features that require documentation, I have updated the documentation in the public-docs repository.

- Proxy Transak onramp flow with session creation
- Resolve on-chain tokens to Transak crypto currencies
- Handle partner auth with automatic token refresh
- Use correct auth headers and endpoints per Transak docs
- Map mainnet chain IDs to testnet equivalents for staging
- Handle native token address matching and add fallback data
- Add SIMULATE_ERROR env var (timeout/auth_error/config_error modes)
- Add USE_REAL_CORE toggle to proxy requests to real Core API
@tomiiide tomiiide self-assigned this Mar 20, 2026
- Checkout package: LifiWidgetCheckout (modal + ref API), router and pages for
  deposit/funding, MUI layout, theme/config providers, exports
- Playground: @lifi/widget-checkout, swap vs checkout mode, preview, persist v3
- Deps: MUI/Emotion, TanStack Router, zustand
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.

1 participant