TTryva

Payment integration

Tryva website membership covers member benefits, technical support, download permissions, and value-added services. It is not a mandatory cloud dependency for the Tryva local runtime.

Payment products

Current purchase flow

  1. The user actively selects a fixed-term membership on the pricing page and agrees to the Terms of Service and Refund Policy.
  2. The backend reads the fixed price from the plan code, creates a local order, and redirects to Alipay.
  3. An order changes to paid only after the Alipay asynchronous notification passes signature, merchant information, and amount verification.
  4. The system activates benefits for the plan duration. The synchronous return page displays processing status only and does not directly activate benefits.
  5. At expiry, the membership automatically returns to the free plan with no automatic charge.

Reserved APIs

POST /api/payments/wechat/pre-sign
POST /api/payments/wechat/notify
POST /api/payments/alipay/pre-sign
POST /api/payments/alipay/notify
POST /api/subscriptions/cancel
POST /api/billing/monthly-charge

Production payments are disabled by default. Before enabling a live merchant, HTTPS, callback reachability, key permissions, signature verification, idempotency, amount verification, callback replay protection, and alerting must all be checked.

Payment integration | Tryva