Context
A work project at Guangzhou Yunxi Guangnian. Developed order and payment systems, integrated UPay and Payssion, and covered purchases, wallet top-ups, subscriptions, renewals, expiry and refunds.
Workflow
- Create order
- Payment channel
- Callback and transaction
- Wallet / subscription
Implementation
Handle requests and callbacks
Implemented payment requests, callbacks and wallet credits. Validated signatures, amounts and currencies, and maintained order states and wallet transaction records.
Prevent duplicate crediting
Combined database transactions and conditional order-state updates to prevent duplicate payment notifications from crediting a wallet twice.
Coordinate money and resources
Connected purchase, renewal and expiry states for cloud phones. Investigated cases where payment and resource states disagreed.
Apply refund constraints
Checked associated orders and refundable amounts, and recorded balance changes and refund transactions.
Delivery and scope
Implemented UPay and Payssion integrations across payment callbacks, financial records, refunds and subscription lifecycles, using transactions and conditional state updates to prevent duplicate credits.
Dianhai Wang · Updated