Skip to content

feat: add subscription pausing by subscriber with duration limits and…#132

Merged
Smartdevs17 merged 3 commits intoSmartdevs17:mainfrom
Calebux:feat/subscription-pausing
Mar 26, 2026
Merged

feat: add subscription pausing by subscriber with duration limits and…#132
Smartdevs17 merged 3 commits intoSmartdevs17:mainfrom
Calebux:feat/subscription-pausing

Conversation

@Calebux
Copy link
Copy Markdown

@Calebux Calebux commented Mar 24, 2026

PR closes #98
implemented a robust pausing mechanism that gives subscribers more control over their recurring payments.

Feature Implementation: Added

pause_by_subscriber
to the Soroban contract, allowing users to pause for a specific duration (up to 30 days).
Auto-Resume Logic: Updated the contract to automatically resume and charge subscriptions once the pause duration expires.
Data Structure: Enhanced the

Subscription
struct with paused_at and pause_duration fields.
Verification: Added comprehensive unit tests confirming that duration limits are enforced and auto-resume works as expected.

@Smartdevs17
Copy link
Copy Markdown
Owner

resolve conflicts

… refund mechanism

- Add pause_by_subscriber with configurable duration (max 30 days)
- pause_subscription defaults to max pause duration
- Auto-resume when pause duration expires (checked on charge/get)
- Add request_refund, approve_refund, reject_refund flows
- Add paused_at, pause_duration, refund_requested_amount fields to Subscription
- Publish on-chain events for pause, resume, refund_requested, approved, rejected
- Add comprehensive test coverage for all new functionality
@Calebux Calebux force-pushed the feat/subscription-pausing branch from bc0152c to 70277d2 Compare March 25, 2026 23:39
Caleb Peterson added 2 commits March 26, 2026 00:45
Integrate upstream changes (MockToken, token::Client transfer, updated
test snapshots) while preserving subscription pausing with duration
limits, auto-resume, and the refund mechanism.
- Regenerate package-lock.json to include cli-table3@0.6.5 from upstream
- Bump RUST_VERSION from 1.77 to 1.85 to support edition2024 required by base64ct-1.8.3
@Smartdevs17 Smartdevs17 merged commit c7f2bc1 into Smartdevs17:main Mar 26, 2026
4 of 12 checks 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.

🔧 Add subscription pausing by subscriber

2 participants