Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π StablePay SDK Implementation
π― Overview
This PR introduces a comprehensive StablePay SDK implementation with React components, network support, and wallet integration capabilities.
β¨ Key Features
π File Structure
π» Widget Components
Widget.jsx
- Main container componentDialog.jsx
- Modal component for interactionsNetworkDropdown.jsx
- Network selector componentPayButton.jsx
- Primary payment triggerTokenDropdown.jsx
- Token selection interfaceTransactionReview.jsx
- Transaction confirmation flowβοΈ Core Logic
MerchantConfig.js
- Merchant configuration handlingNetworkSelector.js
- Network selection logicTokenSelector.js
- Token selection managementTransaction.js
- Transaction processingπ¦ Dependencies
viem
- Ethereum interaction libraryweb3.js
- Web3 functionalityreact
- widget creation dependencyβοΈ Next Steps
π₯ Demo
final-vid.mov
Features demonstrated:
π§ͺ Testing
π Checklist
π Additional Notes
The implementation focuses on maintainability and extensibility. Future network additions can be easily integrated through the network context system.
Note
Please ensure you have the latest dependencies installed before testing(example directory will have the vite/react test file) :