订阅 SDK

数分钟集成应用内购买

使用 Adapty SDK 快速集成应用内购和订阅功能,无需后端编码。Adapty 可处理服务器端收据验证、订阅状态管理、订阅事件等复杂逻辑。
All SDK

开发者友好的 SDK

即使是从零开始,也只需几个小时即可上手应用内支付。您仅需掌握 3 个核心 SDK 方法就能起步。
开始使用 SDK
// Your app's code
import Adapty
 
do {
  try await Adapty.activate("PUBLIC_SDK_KEY")
 
  // Make a purchase, Adapty handles the rest
  let purchaseResult = try await Adapty.makePurchase(product)
  // successful purchase
} catch {
  // handle the error
}
 
 
 
// Your app's code
Adapty.activate(this, AdaptyConfig.Builder("YOUR_APP_KEY").build())
 
// Make a purchase, Adapty handles the rest
Adapty.makePurchase(activity, product) { result ->
	when (result) {
		is AdaptyResult.Success -> {
			if (result.value is AdaptyPurchaseResult.Success)
				// successful purchase
		}
		is AdaptyResult.Error -> {
			// handle the error
		}
	}
}
// Your app's code
import { adapty } from 'react-native-adapty';
await adapty.activate('YOUR_APP_KEY');
 
// Make a purchase, Adapty handles the rest
try {
	const profile = await adapty.makePurchase(product);
	// successful purchase
} catch (error) {
	// handle the error
}
 
 
 
 
// Your app's code
import 'package:adapty_flutter/adapty_flutter.dart';
 
try {
  await Adapty().activate();
 
  // Make a purchase, Adapty handles the rest
  final purchaseResult = await Adapty().makePurchase(product: product);
  // successful purchase
} on AdaptyError catch (adaptyError) {
  // handle the error
} catch (error) {
  // handle other errors
}
 
// Your app's code
using AdaptySDK;
 
Adapty.makePurchase(product, (profile, error) => {
	if (error == null) {
		// successful purchase
	}
});
 
 
 
 
 
 
 

全球 CDN 加速的 API

无论您的用户身处世界何地,Adapty API 都能提供极速响应,最大限度减少支付流程中的延迟。
"其面向订阅者的服务端 API 堪称游戏规则改变者,让我们能够轻松查询订阅状态并管理用户属性。"
Yana
Yana Belenkaya
Locals 产品经理
Img Worldwide Cdn
Img Cross Platform

跨平台订阅用户同步

Adapty 能够同步用户在 iOS、安卓和网页端的订阅状态。您可将其作为单一事实来源,安全地为用户授予高级权限。
了解更多同步细节
Img Server Side

服务器端收据验证

无需自行编写后端代码处理收据验证,我们已为您完成这一工作。

即用型订阅数据湖

Adapty 收集并丰富来自订阅用户的原始事件数据,并将其推送到第三方服务商或您的 ETL。
了解更多集成信息
“借助他们卓越的外部 API,我们可轻松将相关事件传递给 Amplitude 和 Mixpanel 等其他分析工具。”
Avatar: Chris Bick
Chris Bick
Bickster 创始人兼 CEO
Img App Subscription Events

企业级经受考验的解决方案

0M
每月订阅事件
0
.
0B
服务用户数
0
.
0M
订阅用户/月
0B
API 调用量/月
查看所有案例