Skip to content

feat(payment): add balance packages and flexible redeem validity#3319

Open
laozuzhen wants to merge 1 commit into
Wei-Shaw:mainfrom
laozuzhen:codex/pr-payment-balance-packages
Open

feat(payment): add balance packages and flexible redeem validity#3319
laozuzhen wants to merge 1 commit into
Wei-Shaw:mainfrom
laozuzhen:codex/pr-payment-balance-packages

Conversation

@laozuzhen

Copy link
Copy Markdown

Summary

  • Add balance-package support so wallet balance can be granted with an expiry and deducted before permanent wallet balance.
  • Allow redeem-code validity to be represented with sub-day precision and apply it to subscription/balance package redemption flows.
  • Extend payment catalog/order handling, XunhuPay provider support, tiered balance pricing, and related admin/user payment UI.

Tests

  • go test ./internal/service ./internal/payment ./internal/handler ./internal/handler/admin ./internal/server/routes -run 'Payment|Redeem|BalancePackage|Subscription|Xunhu|Plan|Fulfillment|Order'

Notes

  • Frontend build was not run in the isolated worktree because frontend/node_modules is not installed there.

@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@laozuzhen

Copy link
Copy Markdown
Author

recheck

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