Skip to content

feat: add dummy payment method#261

Merged
shurco merged 1 commit intoshurco:mainfrom
majiayu000:fix-246--feature-dummy-payment-method-1231-0641
Jan 1, 2026
Merged

feat: add dummy payment method#261
shurco merged 1 commit intoshurco:mainfrom
majiayu000:fix-246--feature-dummy-payment-method-1231-0641

Conversation

@majiayu000
Copy link
Contributor

Fixes #246

Summary

  • Add dummy payment provider that always succeeds
  • Integrate with existing payment system architecture (handlers, models, queries)
  • Add migration to store dummy_active setting (defaults to false)
  • Add tests for dummy payment status handling

Use Case

Gift registries and other scenarios where always-succeeding payments are needed.

🤖 Generated with Claude Code

Add a dummy payment method that always succeeds, useful for:
- Testing and development environments
- Gift registries where no actual payment processing is needed
- Demo purposes

Changes:
- Add DUMMY payment system constant and provider implementation
- Add Dummy settings model and database migration
- Integrate dummy payment into payment and success handlers
- Add test cases for dummy status mapping

Closes shurco#246

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: majiayu000 <1835304752@qq.com>
@majiayu000 majiayu000 requested a review from shurco as a code owner December 30, 2025 22:54
@shurco shurco merged commit b15f489 into shurco:main Jan 1, 2026
1 check failed
shurco added a commit that referenced this pull request Jan 1, 2026
Changes made in this commit:
- Modified: README.md
- Modified: .github/media/banner.png
- Modified: .github/media/demo.gif
- Modified: .github/media/demo.mp4

Key changes:
- Add comprehensive Dummy Payment section with usage details
- Update Free Products section with references to Dummy Payment
- Add section headers for video example and admin panel screenshots
- Update ToDo list to mark Dummy Payment as completed
- Update media files (banner, demo gif and mp4)

This commit documents the Dummy Payment feature that was implemented
in PR #261, providing users with clear information about how to use
the built-in payment provider for free products.
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.

🚀 [Feature]: Dummy payment method

2 participants