Skip to content

fix: dont show "credits received" message when checkout form times out or fails#141

Open
seanmcgary wants to merge 10 commits into
release/v1.0.0from
sm-fixDeclinedCard
Open

fix: dont show "credits received" message when checkout form times out or fails#141
seanmcgary wants to merge 10 commits into
release/v1.0.0from
sm-fixDeclinedCard

Conversation

@seanmcgary
Copy link
Copy Markdown
Member

No description provided.

seanmcgary and others added 10 commits May 4, 2026 21:27
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rewrote the top-up command to support both USDC and credit card payment methods.
Users can now choose between on-chain USDC payment or credit card checkout.

Changes:
- Added method flag to select payment method (usdc or card)
- Extracted USDC flow into handleUsdc() method
- Added handleCard() method for credit card checkout flow
- Added pollForCredits() helper to share polling logic
- Updated description and examples
- Integrated with new SDK methods: getPaymentMethods and purchaseCredits

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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