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
- Alipay: currently uses a one-time purchase for a fixed term, with benefits activated for the selected duration after successful payment.
- WeChat Pay: not yet available; it will be integrated after Official Account and merchant capabilities are ready.
- All payment amounts must be fixed by the server, and benefits may take effect only after a verified asynchronous notification.
Current purchase flow
- The user actively selects a fixed-term membership on the pricing page and agrees to the Terms of Service and Refund Policy.
- The backend reads the fixed price from the plan code, creates a local order, and redirects to Alipay.
- An order changes to paid only after the Alipay asynchronous notification passes signature, merchant information, and amount verification.
- The system activates benefits for the plan duration. The synchronous return page displays processing status only and does not directly activate benefits.
- 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-chargeProduction 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.