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

选择适合您平台的 SDK
对开发者和智能体都友好的 SDK
手动集成
借助智能体
Claude Code
Codex
Cursor
Gemini CLI
GitHub Copilot
Other
claude plugin marketplace add adaptyteam/adapty-skills
claude plugin install adapty-skills@adapty
npx skills add adaptyteam/adapty-skills --all
npx skills add adaptyteam/adapty-skills --all
gemini skills install https://github.com/adaptyteam/adapty-skills
git clone https://github.com/adaptyteam/adapty-skills.git
cp -r adapty-skills/skills/* ~/.copilot/skills/
npx skills add adaptyteam/adapty-skills --all
2
然后在应用项目中运行集成 Skill
智能体会配置 Adapty 并集成 SDK,每一步都会自行检查结果。
/adapty-integration
// 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
}
});


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

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







