Getting started

PurchaseKit enables in-app purchases for Hotwire Native apps built with Rails.

Want to see it work first? Try the demo and make a test purchase in under 10 minutes.

It normalizes Apple and Google webhooks into a unified format, handles the complexity of subscription management, and provides drop-in bridge components for native purchases.

Video of an iOS app making an in-app purchase with PurchaseKit
Video of an iOS app making an in-app purchase with PurchaseKit

How it works

  1. Your Rails app renders an HTML paywall
  2. Hotwire Native displays it in your iOS/Android app
  3. User taps subscribe, triggering StoreKit/Play Billing
  4. Apple/Google send webhooks to PurchaseKit
  5. PurchaseKit normalizes the data and forwards to your Rails app
  6. Your app creates a subscription record and redirects the user

Quick start

  1. Rails setup - Choose your integration:
  2. Native setup - Add the package to your Hotwire Native app:
  3. Store configuration - Create products and configure webhooks:
  4. Testing - Test locally before going live:

Reference

Prerequisites

  • A Rails application with Hotwire Native
  • An Apple Developer account (for iOS)
  • A Google Play Developer account (for Android)

Support

If you run into issues, check the testing guides for iOS or Android, or reach out at joe@purchasekit.com.