Token导航 LogoToken导航TokenDH.com
开发需要联网clawhub未标认证来源可访问clear审计通过

in-app-purchases应用内购买

Agent Skill

in-app-purchases 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

19,430

周安装

786

GitHub Stars

2

下载量

6,099
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:in-app-purchases(应用内购买)
来源仓库:https://github.com/ivangdavila/in-app-purchases
安装命令:
openclaw skills install in-app-purchases
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install in-app-purchases

简介

借助 RevenueCat、付费专区、收据验证和订阅分析,在 iOS、Android 和 Flutter 上实现应用内购买和订阅。

SKILL.md

name
In-App Purchases
slug
in-app-purchases
version
1.0.0
description
Implement in-app purchases and subscriptions across iOS, Android, and Flutter with RevenueCat, paywalls, receipt validation, and subscription analytics.
metadata
{"clawdbot":{"emoji":"💳","requires":{"bins":[]},"os":["linux","darwin","win32"]}}

When to Use

User needs to implement in-app purchases, subscriptions, paywalls, or monetization flows. Agent handles native APIs (StoreKit 2, Google Play Billing), cross-platform SDKs (RevenueCat, Adapty, Qonversion), paywall design, server verification, and subscription analytics.

Quick Reference

TopicFile
iOS StoreKit 2storekit.md
Android Billinggoogle-play.md
Flutter packagesflutter.md
RevenueCat SDKrevenuecat.md
Platform comparisonplatforms.md
Server verificationserver.md
Paywall designpaywalls.md
Subscription metricsanalytics.md
Testing & sandboxtesting.md

Core Rules

1. Choose Your Architecture

ApproachWhen to UseTradeoff
Native onlySingle platform, full controlMore code, no cross-platform sync
RevenueCat/AdaptyCross-platform, fast launch1-2% fee, dependency
HybridNative + own backendFull control, more work

2. Platform SDKs (Managed)

PlatformPricingBest For
RevenueCatFree <$2.5k MTR, then 1%Most apps, best docs
AdaptyFree <$10k MTR, then 0.6%Cost-conscious, A/B paywalls
QonversionFree <$10k MTR, then 3%Simple setup
SuperwallPaywall-focusedPaywall A/B only
GlassfyFree <$10k, then 0.5%Budget option

3. Product Types

TypeiOSAndroidUse Case
ConsumableCredits, coins, lives
Non-consumableUnlock feature forever
Auto-renewableSubscriptions
Non-renewingSeason pass, time-limited

4. Server Verification is Non-Negotiable

Never trust client-side validation alone:

  • iOS: App Store Server API with JWS verification
  • Android: Google Play Developer API
  • RevenueCat: Webhooks + REST API

5. Handle All Transaction States

StateAction
PurchasedVerify → grant → finish
PendingWait, show pending UI
FailedShow error, don't grant
DeferredWait for parental approval
RefundedRevoke immediately
Grace periodLimited access, prompt payment
Billing retryMaintain access during retry

6. Subscription Lifecycle Events

Must handle all of these (native or via webhooks):

  • INITIAL_PURCHASE → grant access
  • RENEWAL → extend access
  • CANCELLATION → mark will-expire
  • EXPIRATION → revoke access
  • BILLING_ISSUE → prompt to update payment
  • GRACE_PERIOD → limited access window
  • PRICE_INCREASE → consent required (iOS)
  • REFUND → revoke + flag user
  • UPGRADE/DOWNGRADE → prorate

7. Restore Purchases Always

Required by App Store guidelines:

  • Prominent restore button
  • Works for logged-out users
  • Handles family sharing (iOS)
  • Cross-device sync

8. Paywall Best Practices

See paywalls.md for detailed patterns:

  • Show value before price
  • Anchor pricing (3 options, highlight middle)
  • Free trial prominent
  • Social proof if available
  • A/B test everything

9. Testing Strategy

EnvironmentiOSAndroid
Dev/DebugStoreKit Config fileLicense testers
SandboxSandbox accountsInternal testing
ProductionReal accountsProduction

Sandbox subscription times:

  • 1 week → 3 minutes
  • 1 month → 5 minutes
  • 1 year → 1 hour

10. App Store Guidelines

  • No external payment links (anti-steering)
  • Must use IAP for digital goods
  • Physical goods/services can use Stripe
  • Reader apps have exceptions
  • 15-30% commission applies

Common Traps

  • Testing with real money → use sandbox/test accounts
  • Not finishing transactions → auto-refund (Android 3 days)
  • Hardcoding prices → always fetch from store (regional pricing)
  • Missing transaction observer → lose purchases made outside app
  • No server verification → trivially bypassable
  • Ignoring grace period → users churn when they could recover
  • Poor paywall UX → kills conversion regardless of price
  • Not tracking metrics → can't optimize what you don't measure
  • Forgetting restore button → App Store rejection
  • Not handling family sharing → confused users

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

97.55%
按下载量换算5,950

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills