agentsclimarketplace

Monetization

Skill DojoCodingLabs/app-gtm-release-toolkit/skills/monetization

Set up in-app purchases, subscriptions, and payment processing for Flutter apps using RevenueCat or Lemon Squeezy. Use this skill when the user asks about monetization, subscriptions, in-app purchases, paywalls, entitlements, offerings, RevenueCat setup, Lemon Squeezy integration, pricing models, or payment processing for mobile apps. Also triggers on: 'add subscriptions', 'paywall', 'premium features', 'free trial', 'freemium model', or 'how to charge users'.From its SKILL.md

Install
npx -y skills add DojoCodingLabs/app-gtm-release-toolkit --skill monetization

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

7.4 KB, as published. Nobody here has run it

Monetization: Subscriptions & In-App Purchases

This skill covers payment integration for Flutter apps, from choosing a provider to implementing paywalls and managing entitlements.

Provider Decision

FeatureRevenueCatLemon Squeezy
Best forMobile-first subscriptionsWeb + mobile hybrid products
PlatformsiOS, Android, Amazon, WebWeb-first, mobile via webhooks
Flutter SDKOfficial (purchases_flutter)No Flutter SDK (REST API + webhooks)
Paywall UIBuilt-in (purchases_ui_flutter)Build your own
Store complianceHandles StoreKit + Play BillingYou handle store integration
PricingFree tier (up to $2.5k MTR), then 1-2.5%5% + 50c per transaction
Merchant of recordNo (you handle taxes)Yes (they handle taxes globally)
Ideal use caseApp Store/Play Store subscriptionsDigital products, SaaS, one-time purchases

Quick decision:

  • Selling subscriptions through App Store / Play Store → RevenueCat
  • Selling digital products, licenses, or SaaS outside stores → Lemon Squeezy
  • Both → RevenueCat for mobile + Lemon Squeezy for web/backend

RevenueCat Setup

Read references/revenuecat.md for complete implementation guide.

Architecture Overview

Flutter App
  └─ purchases_flutter SDK
      └─ RevenueCat Backend
          ├─ Apple StoreKit (iOS subscriptions)
          ├─ Google Play Billing (Android subscriptions)
          └─ Amazon Appstore (optional)

RevenueCat acts as a single source of truth for subscription state across platforms. It handles:

  • Receipt validation
  • Subscription status tracking
  • Cross-platform purchase syncing
  • Webhook delivery to your backend
  • Analytics and churn metrics

Quick Start

  1. Create RevenueCat account at app.revenuecat.com
  2. Create project, add app (iOS + Android)
  3. Configure store credentials:
    • iOS: App Store Connect Shared Secret + In-App Purchase Key
    • Android: Google Play service account JSON
  4. Create Products in each store (App Store Connect + Google Play Console)
  5. Create Entitlements in RevenueCat (e.g., "premium")
  6. Create Offerings with Packages (monthly, annual, lifetime)
  7. Integrate SDK in Flutter app

Essential Code

Initialize SDK (call once at app start):

import 'package:purchases_flutter/purchases_flutter.dart';

Future<void> initRevenueCat() async {
  await Purchases.setLogLevel(LogLevel.debug); // Remove in production
  final config = PurchasesConfiguration('your_revenuecat_api_key')
    ..appUserID = null; // Anonymous until user logs in
  await Purchases.configure(config);
}

Check subscription status:

Future<bool> isPremium() async {
  final customerInfo = await Purchases.getCustomerInfo();
  return customerInfo.entitlements.active.containsKey('premium');
}

Show paywall (using RevenueCat UI):

import 'package:purchases_ui_flutter/purchases_ui_flutter.dart';

Future<void> showPaywall() async {
  final result = await RevenueCatUI.presentPaywall(
    displayCloseButton: true,
  );
  if (result == PaywallResult.purchased) {
    // Grant access
  }
}

Purchase a package:

Future<void> purchase(Package package) async {
  try {
    final result = await Purchases.purchase(
      PurchaseParams.package(package),
    );
    if (result.customerInfo.entitlements.active.containsKey('premium')) {
      // Success
    }
  } on PlatformException catch (e) {
    final code = PurchasesErrorHelper.getErrorCode(e);
    if (code == PurchasesErrorCode.purchaseCancelledError) {
      // User cancelled, don't show error
    }
  }
}

Lemon Squeezy Integration

Read references/lemonsqueezy.md for API details.

Architecture Overview

Flutter App
  └─ WebView or deep link to checkout
      └─ Lemon Squeezy (handles payment + taxes)
          └─ Webhook to your backend
              └─ Backend updates user entitlements
                  └─ Flutter app checks entitlements

Lemon Squeezy is a merchant of record — they handle global tax compliance, invoicing, and payment processing. You receive payouts minus their fee.

When to Use Lemon Squeezy Over RevenueCat

  • Selling access to APIs, web dashboards, or digital content
  • Need global tax compliance without handling it yourself
  • Want a checkout experience outside of App Store/Play Store
  • Selling one-time purchases (not just subscriptions)
  • Apple/Google's 30% commission is too high for your margins

Integration Pattern

Since there's no Flutter SDK, integrate via:

  1. Checkout URL — open in WebView or external browser
  2. Webhooks — receive payment events on your backend
  3. License validation — verify purchase in your app via API
// Open Lemon Squeezy checkout
import 'package:url_launcher/url_launcher.dart';

Future<void> openCheckout(String productId) async {
  final url = 'https://your-store.lemonsqueezy.com/checkout/buy/$productId'
      '?checkout[custom][user_id]=user_123';
  await launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication);
}

Pricing Strategy

Common Mobile Pricing Models

ModelExampleRevenue pattern
FreemiumFree core + premium featuresRecurring (subscriptions)
Free trial7-day trial → paidHigh conversion if value is clear
One-time purchaseUnlock all featuresSpiky, no recurring
ConsumableCredits, tokensVariable, engagement-dependent
TieredBasic / Pro / EnterpriseSegmented by usage

Pricing Best Practices for Stores

  • Offer annual plans — higher LTV, lower churn. Typical discount: 15-30% vs monthly
  • Free trial > freemium for subscription apps (Apple and Google both support trial periods natively)
  • Price anchoring — show annual price first, monthly price looks expensive by comparison
  • Localized pricing — adjust prices by market purchasing power
  • Introductory offers — Apple and Google support discounted first periods

Store Commission

StoreCommissionReduced rate
Apple App Store30%15% (< $1M/year revenue via Small Business Program)
Google Play Store30%15% (first $1M/year)
Amazon Appstore30%20% (some categories)

Entitlement Architecture

Design entitlements to be platform-agnostic and forward-compatible:

// Good: abstract entitlement
enum AppEntitlement { premium, proPlan, teamPlan }

// Bad: tied to specific product
enum AppEntitlement { monthlySubscription, annualSubscription }

A user with "premium" entitlement might have:

  • Monthly subscription via Google Play
  • Annual subscription via App Store
  • Lifetime purchase via promotion
  • Free access via team plan

RevenueCat maps all of these to the same entitlement. Your app only checks entitlements.active.containsKey('premium').

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.