Choosing an Integration Option
We typically recommend one of two approaches, depending on how much control and customization you need.
Option 1: Direct integration with Alipay and WeChat Pay
In this setup, your team integrates the Alipay SDK and WeChat Pay SDK directly into your app and backend.
This option is usually suitable if:
- You require custom or non-standard payment workflows
- You need deep control over payment logic or provider-specific features
- Your system has special requirements around order handling or payment states
Things to consider:
- Two separate SDK and API integrations
- Higher development and long-term maintenance effort
- Transaction logging and reconciliation must be handled in your own system
Option 2: Integration with AppInChina IAP Payments System
Our IAP Payments System provides a single SDK and API that wraps both Alipay and WeChat Pay, allowing you to integrate payments once instead of managing each provider separately.
It is important to note that:
- Alipay and WeChat Pay remain the actual payment processors
- The IAP system acts as a wrapper, launching the official provider SDKs on the user’s device
- Your system continues to manage users and products; the IAP system only records transactions
- For a detailed scope breakdown (what the system does and does not include), see: Capabilities and Limitations (Scope)
Typical payment flow
- A user selects a product in your app.
- Your app calls the IAP SDK with:
- A product label (for example,
goodsTitle) - Your internal user identifier (for example,
customerIdentity). See: Login → Payments integration (customer identity)
- A product label (for example,
- The SDK invokes either Alipay or WeChat Pay.
- The user completes the payment in the provider’s native interface.
- The payment result is returned to your app.
- The transaction is recorded in the IAP backend with your provided identifiers.
- Your backend updates the user’s access or entitlement.
This option is well suited for:
- Standard one-time purchases or subscriptions
- Faster integration timelines
- Unified transaction records across Alipay and WeChat Pay
- Reduced integration and maintenance complexity