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

Copy link
Copy Markdown
Contributor

Thank you for your contribution! Before we can merge this PR, we need you to sign our Contributor License Agreement (CLA).

To sign, please reply with the following comment:

I have read the CLA Document and I hereby sign the CLA

You only need to sign once — it will be valid for all your future contributions to this project.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

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