Skip to content

Feat/wechatpay events#8

Merged
douglas-ou merged 6 commits intomainfrom
feat/wechatpay_events
Jan 23, 2026
Merged

Feat/wechatpay events#8
douglas-ou merged 6 commits intomainfrom
feat/wechatpay_events

Conversation

@douglas-ou
Copy link
Member

增加微信支付

douglas-ou and others added 6 commits January 21, 2026 23:24
移除以下文档文件以清理项目结构:
- 活动作品提交与投票系统需求文档
- Events Token API 使用说明
- 黑客松活动优化方案 V2.0
- 黑客松活动优化改进文档
- 黑客松阶段系统分析报告
- 黑客松开关控制系统设计
- 黑客松文档索引

这些文件已不再需要,旨在简化项目文档管理。
…and gifting

- Introduced WeChat Pay integration for event ticket purchases, supporting both Native and JSAPI payment methods.
- Added new `EventOrder` model to manage paid ticket orders, including a `PENDING_PAYMENT` status for registrations.
- Implemented tiered pricing based on ticket quantity and the ability to generate gift invite links for multi-seat orders.
- Enhanced order management with features for order cancellation, refunds, and webhook handling for payment notifications.
- Updated frontend components to support new payment flows and invite management.

This commit lays the groundwork for a comprehensive event ticketing system, improving user experience and operational efficiency.
…ling

- Added initial calculation for remaining seconds until expiration when the modal opens.
- Updated condition to check for order cancellation based on expiration time instead of remaining seconds.
- Adjusted dependencies in the effect hook to include `expiresAt` for accurate status updates.

These changes enhance the functionality of the PaymentModal by ensuring timely cancellation of pending orders.
…ry and UI improvements

- Introduced support for `PENDING_PAYMENT` status in the admin dashboard, including color mapping and filtering options.
- Implemented a mechanism to recover pending orders, allowing users to continue payment after closing the modal.
- Enhanced the payment modal with clear status indicators and a manual query button for payment status.
- Added internationalization support for new order-related messages and improved error handling for payment queries.
- Updated backend APIs to manage pending orders and mark them as paid, ensuring a seamless user experience.

These changes significantly improve the payment flow, addressing user feedback and enhancing overall usability.
When users attempt WeChat Pay without a bound OpenID, display a prompt
dialog guiding them to bind their WeChat account. Also refactors
duplicate error parsing utilities into a shared module.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…equests

Added the "Accept-Language" header with a value of "zh-CN" to WeChat Pay requests to ensure compatibility with WeChat Pay v3 language requirements, preventing unsupported defaults from the runtime.
@douglas-ou douglas-ou merged commit 235d912 into main Jan 23, 2026
0 of 2 checks passed
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