Skip to content

feat(recurring): add pause/resume recurring payments#359

Merged
BigBen-7 merged 2 commits into
Lead-Studios:mainfrom
AbdulmujibOladayo:feat/issue-191-pause-resume-recurring
May 30, 2026
Merged

feat(recurring): add pause/resume recurring payments#359
BigBen-7 merged 2 commits into
Lead-Studios:mainfrom
AbdulmujibOladayo:feat/issue-191-pause-resume-recurring

Conversation

@AbdulmujibOladayo
Copy link
Copy Markdown
Contributor

Summary

Adds pause_recurring and resume_recurring to allow a payer to temporarily halt charges without cancelling the recurring payment.

Changes

  • Add paused: bool field to RecurringRecord (default false)
  • Add pause_recurring(e, caller, recurring_id) — payer only, sets paused = true, emits recurring_paused event
  • Add resume_recurring(e, caller, recurring_id) — payer only, sets paused = false, emits recurring_resumed event
  • execute_recurring now checks !record.paused and panics if paused
  • Expose both functions in contract.rs

closes #191

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@AbdulmujibOladayo Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@BigBen-7 BigBen-7 merged commit c4a7b6b into Lead-Studios:main May 30, 2026
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.

feat: add pause/resume to recurring payments — allow payer to temporarily halt charges

2 participants