
为您的平台选择SDK
// Your app's code
import Adapty
Adapty.activate("PUBLIC_SDK_KEY")
// Make a purchase, Adapty handles the rest
do {
let purchasedInfo = try await Adapty.makePurchase(product)
// successful purchase
} catch {
// handle the error
}
// Your app's code
Adapty.activate(this, "YOUR_APP_KEY")
// Make a purchase, Adapty handles the rest
Adapty.makePurchase(activity, product) { result ->
when (result) {
is AdaptyResult.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';
Adapty().activate();
// Make a purchase, Adapty handles the rest
try {
final profile = await Adapty().makePurchase(product: product);
// successful purchase
} on AdaptyError catch (adaptyError) {
// handle the error
} catch (error) {
// handle another errors
}
// Your app's code
using AdaptySDK;
Adapty.makePurchase(product, (profile, error) => {
if (error == null) {
// successful purchase
}
});
快速API,全球CDN
无论您的用户身在何处,Adapty API都会迅速响应,最小化支付的摩擦。


服务器端收据验证
您无需编写服务器处理以进行收据验证,我们为您完成了这项工作。

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