Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计提醒

capacitor-in-app-purchases应用程序购买中的电容器

Agent Skill

capacitor-in-app-purchases 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,866

周安装

77

GitHub Stars

19

下载量

610
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/capawesome-team/skills --skill capacitor-in-app-purchases

简介

用于在 Capacitor 应用中设置内购和订阅功能,支持多支付服务商集成。

  • 适用于需要接入 Apple App Store 或 Google Play 支付系统的商业应用开发。
  • 涵盖商店配置、插件集成、购买流程和收据验证等完整实现链条。
  • 使用前需具备付费开发者账号、Xcode 和 Android Studio 等必要开发环境。
  • capacitor-in-app-purchases 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Capacitor In-App Purchases

Set up in-app purchases and subscriptions in Capacitor apps, covering store configuration, plugin integration, purchase flows, receipt validation, and testing.

Prerequisites

  1. Capacitor 6, 7, or 8 app (Capawesome Purchases requires Capacitor 8+; RevenueCat requires Capacitor 8+).
  2. Node.js and npm installed.
  3. For iOS: A paid Apple Developer Program membership, Xcode installed, and an app created in App Store Connect.
  4. For Android: A Google Play Developer account, Android Studio installed, and an app created in Google Play Console.

Agent Behavior

  • Guide step-by-step. Walk the user through the process one step at a time. Never present multiple unrelated questions at once.
  • Auto-detect before asking. Check the project for platforms (android/, ios/), package.json dependencies, and Capacitor version. Only ask the user when something cannot be detected.
  • One decision at a time. When a step requires user input, ask that single question, wait for the answer, then continue.
  • Present clear options. Provide concrete choices (e.g., "Which purchases plugin do you want to use? (1) Capawesome Purchases (2) RevenueCat") instead of open-ended questions.

Procedures

Step 1: Analyze the Project

Auto-detect the following by reading project files — do not ask the user for information that can be inferred:

  1. Platforms: Check which directories exist (android/, ios/). These are the platforms to configure.
  2. Capacitor version: Read @capacitor/core version from package.json.
  3. Existing purchases plugins: Check if @capawesome-team/capacitor-purchases, @revenuecat/purchases-capacitor, or any other in-app purchase plugin is already in package.json. If found, inform the user and ask whether to continue with the existing plugin or switch.

Step 2: Configure Products in App Store Connect (iOS)

Skip if ios/ does not exist.

Read references/app-store-connect-setup.md and guide the user through creating in-app purchase products and subscriptions in App Store Connect. This covers:

  • Accepting required developer agreements
  • Verifying business configuration (Paid Apps Agreement, bank account, tax forms)
  • Creating in-app purchase products (consumables, non-consumables, subscriptions)
  • Subscription group setup
  • Product status requirements

Step 3: Configure Products in Google Play Console (Android)

Skip if android/ does not exist.

Read references/google-play-console-setup.md and guide the user through creating in-app purchase products in Google Play Console. This covers:

  • Completing compliance and metadata requirements
  • Creating in-app products and subscriptions
  • Configuring pricing and tax settings
  • Activating products

Step 4: Choose a Purchases Plugin

Ask the user which plugin to use:

  1. Capawesome Purchases (@capawesome-team/capacitor-purchases) — Lightweight, no third-party backend dependency. Requires a Capawesome Insiders license. Server-side receipt validation is the developer's responsibility.
  2. RevenueCat (@revenuecat/purchases-capacitor) — Full backend service with server-side receipt validation, entitlement management, analytics, and integrations. Requires a RevenueCat account.

Default recommendation: Capawesome Purchases for apps that already have a backend for receipt validation or want to avoid third-party dependencies. RevenueCat for apps that want managed receipt validation and subscription analytics out of the box.

Step 5: Install and Configure the Plugin

Based on the user's choice in Step 4:

  • Capawesome Purchases: Read references/capawesome-purchases-setup.md and follow the installation and platform configuration steps.
  • RevenueCat: Read references/revenuecat-setup.md and follow the installation and platform configuration steps.

Step 6: Implement Purchase Flows

Based on the user's plugin choice:

  • Capawesome Purchases: Read references/capawesome-purchases-implementation.md and add the purchase code to the project.
  • RevenueCat: Read references/revenuecat-implementation.md and add the purchase code to the project.

Adapt imports and code structure to match the user's framework (Angular, React, Vue, etc.).

The implementation covers:

  1. Fetching product details
  2. Purchasing a product
  3. Finishing transactions (Capawesome) or checking entitlements (RevenueCat)
  4. Restoring purchases
  5. Handling unfinished transactions on app startup
  6. Receipt validation strategy

Step 7: Configure Optional Features

Ask the user which optional features to enable:

  1. Subscription management — Display subscription status, handle renewals and expirations.
  2. Introductory offer eligibility — Check if a user qualifies for introductory pricing (Capawesome Purchases only).
  3. Server notifications — Set up App Store Server Notifications and/or Google Play Real-time Developer Notifications for subscription lifecycle events.

For each selected feature, read the corresponding implementation reference file and apply the relevant code.

Step 8: Test Purchases

Read references/testing.md and guide the user through testing in-app purchases on both platforms. This covers:

  • iOS Sandbox testing with test accounts
  • iOS StoreKit Testing in Xcode
  • Android testing with Google Play Console internal track and license testing accounts
  • Common testing pitfalls and debugging tips

Step 9: Sync and Verify

npx cap sync

Build and run on each platform to verify purchases work end-to-end:

npx cap run android
npx cap run ios

Error Handling

  • Products not appearing: On iOS, products may take up to a few hours to become available after creation in App Store Connect. Verify product status is "Ready to Submit" or "Approved". On Android, verify products are in "Active" status and the app has been uploaded to at least the internal testing track.
  • Purchase fails silently on Android: The app must be installed from Google Play (not via direct APK install). Upload the app to the internal testing track, add test accounts under License Testing, and install from Google Play.
  • iOS sandbox purchase loops or fails: Ensure the device is signed into a Sandbox test account (Settings > App Store > Sandbox Account on iOS 14+). Do not use a production Apple ID for testing.
  • purchaseProduct() returns error on Android: Verify google-services.json is present and the Google Play Billing Library version is compatible. Check $googlePlayBillingVersion in android/variables.gradle.
  • Receipt validation fails: On iOS, verify the JWS token via transaction.verificationResult. On Android, validate transaction.token, transaction.originalJson, and transaction.signature against the Google Play Developer API.
  • Restore purchases shows nothing: On iOS, syncTransactions() displays a system authentication dialog — it must be called in response to an explicit user action (e.g., a "Restore Purchases" button tap). On Android, it runs silently.
  • finishTransaction() not called: Unfinished transactions block future purchases on some platforms. Always call finishTransaction() after delivering content. Check for unfinished transactions at every app launch.
  • Plugin not found at runtime: Ensure npx cap sync was run after installation. For Capawesome Purchases, verify the Capawesome npm registry is configured.
  • Capacitor version mismatch: Both Capawesome Purchases and RevenueCat require Capacitor 8+. Check @capacitor/core version in package.json.

Related Skills

  • capacitor-plugins — For general Capacitor plugin installation and configuration, including the Capawesome Purchases and RevenueCat plugins.
  • capawesome-cloud — For app store publishing after in-app purchases are configured.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.02%
按下载量换算208

Claude

33.66%
按下载量换算205

Cursor

18.32%
按下载量换算112

Gemini CLI

10.38%
按下载量换算63

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills