Skip to main content

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.

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:

  1. Choose an integration strategy: Read Integration Options to decide between the unified SDK (recommended) or direct integration.
  2. 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).
  3. 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:

  1. Start with the flow: Read Understanding the IAP Flow to see how the SDK wraps Alipay and WeChat Pay.
  2. Check prerequisites: Read Prerequisites & Setup to get your credentials (APP_ID, APP_SECRET) and prepare your environment.
  3. Handle user identity: Read Login & Identity to understand how to link payments to your user accounts using customerIdentity.
  4. Implement the client:
  5. Verify with the API: Use the API Reference to verify orders server-side.

Documentation Index

Concepts & Architecture

Guides & Best Practices

SDKs & Implementation

References

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.