Skip to content

feat: free trial, merchant end, and convenience views - #144

Open
dinahmaccodes wants to merge 1 commit into
stellar-sub:mainfrom
dinahmaccodes:new/issue/53-54-55-57
Open

dinahmaccodes wants to merge 1 commit into
stellar-sub:mainfrom
dinahmaccodes:new/issue/53-54-55-57

Conversation

@dinahmaccodes

@dinahmaccodes dinahmaccodes commented Oct 22, 2026 •

Copy link
Copy Markdown

Summary

Test plan

  • All 98 existing and new subscription tests pass
  • New feature tests cover:
    • Trial delays first charge correctly
    • Trial zero allows immediate charge
    • Merchant-end blocks all charges
    • Merchant-end updates registry
    • Convenience views return correct values across lifecycle
    • Allowance status reflects outstanding cap

Closes

Closes #53
Closes #54
Closes #55
Closes #57

Implement issues stellar-sub#53, stellar-sub#54, stellar-sub#55, stellar-sub#57:
- stellar-sub#53: Free-trial option with trial_ledgers parameter
- stellar-sub#54: Merchant-end functionality to prevent future charges
- stellar-sub#55: get_allowance_status view for outstanding cap/allowance
- stellar-sub#57: charges_remaining and next_charge_in convenience views

Also add comprehensive tests for all new features.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant