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

选择适合您平台的 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 都能提供极速响应,最大限度减少支付流程中的延迟。


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

企业级经受考验的解决方案
0M
每月订阅事件
0
.
0B
服务用户数
0
.
0M
订阅用户/月
0B
API 调用量/月







