Skip to content

Conversation

@spencerstock
Copy link
Collaborator

Summary

Adds a playground implementation for the payWithToken function to the pay playground.

Changes

  • Add payWithToken section to pay playground UI
  • Add DEFAULT_PAY_WITH_TOKEN_CODE and PAY_WITH_TOKEN_CODE_WITH_PAYER_INFO constants
  • Add PAY_WITH_TOKEN_QUICK_TIPS for user guidance
  • Update useCodeExecution hook to include payWithToken function
  • Update Output component to handle PayWithTokenResult type
  • Wire up payWithToken execution with payer info toggle support
  • Auto-populate getPaymentStatus with transaction IDs from token payments

Testing

  • Lint passes
  • Tests pass (existing Dialog.test.tsx failures are pre-existing and unrelated)

Dependencies

This PR depends on the payWithToken-changes branch which contains the core SDK implementation.

@spencerstock spencerstock changed the title feat: add payWithToken playground implementation add payWithToken playground implementation Nov 25, 2025
- Add payWithToken section to pay playground UI
- Add DEFAULT_PAY_WITH_TOKEN_CODE and PAY_WITH_TOKEN_CODE_WITH_PAYER_INFO constants
- Add PAY_WITH_TOKEN_QUICK_TIPS for user guidance
- Update useCodeExecution hook to include payWithToken function
- Update Output component to handle PayWithTokenResult type
- Wire up payWithToken execution with payer info toggle support
- Auto-populate getPaymentStatus with transaction IDs from token payments
@spencerstock spencerstock force-pushed the payWithToken-playground branch from 836415b to 5347b99 Compare November 25, 2025 06:52
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.

2 participants