AppInChina Payments Documentation
This guide provides an overview of how to integrate AppInChina's payment services, including SDK and API options, authentication methods, and supporting features like purchase restoration.
Recommended Reading Path
Depending on your role, we recommend starting with different sections of the documentation.
For Product Managers
If you are defining the feature set, sales model, or integration strategy:
- Choose an integration strategy: Read Integration Options to decide between the unified SDK (recommended) or direct integration.
- Understand the scope: If you decide to use our payments solution, read Capabilities & Limitations to understand what the system handles (payments) vs what your backend must handle (users, products, entitlements).
- Define your sales model: Read Sales Models & Architecture to understand how to implement subscriptions, one-time purchases, and cross-device entitlements in China.
For Developers
If you are implementing the solution:
- Start with the flow: Read Understanding the IAP Flow to see how the SDK wraps Alipay and WeChat Pay.
- Check prerequisites: Read Prerequisites & Setup to get your credentials (
APP_ID,APP_SECRET) and prepare your environment. - Handle user identity: Read Login & Identity to understand how to link payments to your user accounts using
customerIdentity. - Implement the client:
- Android: Follow the Android SDK Guide.
- Web/H5: Follow the PC & H5 Guide.
- Verify with the API: Use the API Reference to verify orders server-side.
Documentation Index
Concepts & Architecture
- Choosing an integration option: Integration Options Guide
- Understanding the flow: IAP SDK/API Flow
- Scope & boundaries: Capabilities & Limitations
- Sales models: Sales Models & Architecture
Guides & Best Practices
- Login & identity: Mapping users with
customerIdentity - Purchase restore: Implementing restore & SMS auth
- Refunds & support: Purchase History & Refund Workflows
SDKs & Implementation
- Prerequisites: Environment setup & credentials
- Android: Android SDK Integration
- Web / H5: PC & H5 Integration
References
- API Reference: Endpoints & Parameters
- Error Codes: Error Reference
Getting started
Before you begin, make sure you have obtained your APP_ID and APP_SECRET. These credentials are required for SDK initialization and all API requests.
Start with the Prerequisites and environment setup.