Dianhai WangResume
中文

Project notes · BACKEND / TRANSACTIONS

Orders, Payments and Subscriptions

Connected orders, wallet top-ups, payment channels, subscription renewals and refunds for a cloud-phone platform, with attention to financial and resource state consistency.

  • Go
  • go-zero
  • MySQL
  • Redis
  • UPay / Payssion

Work project · Guangzhou Yunxi Guangnian

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

  1. Create order
  2. Payment channel
  3. Callback and transaction
  4. 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

Contact