Payment
RevenueCat Setup

Setup for iOS and Android Payments with RevenueCat

This guide will walk you through the process of setting up payments for your iOS and Android app using RevenueCat.

Prerequisites

💡

For a more detailed guide on configuring products in RevenueCat, please refer to the official RevenueCat documentation (opens in a new tab).

Setup

💡

See the official RevenueCat documentation (opens in a new tab) for more information on configuring products in RevenueCat for iOS

Register for a Free RevenueCat Account

Visit the RevenueCat website (opens in a new tab) and create an account using your email address. It's recommended to use a company account for better team collaboration.

Create a Project

After logging in, click the Projects dropdown panel at the top of the RevenueCat dashboard and select + Create new project. Set a project name and customize your global restore behavior.

Add Your iOS App to the Project

Select iOS as the platform when prompted to add an app. Fill in the required fields:

  • App Name
  • In-App Purchase Key (required for iOS)
  • Bundle ID (must match the one in your App Store Connect)
  • Shared Secret (for in-app purchases)

Complete the configuration by following the steps provided by RevenueCat.

Tip: Setting up Platform Server Notifications is recommended for faster webhook updates.

Add API Keys to the Environment

Ensure the following environment variable is properly set in your .env.local file:

# REVENUE CAT - PAYMENT
EXPO_PUBLIC_REVENUE_CAT_API_KEY_APPLE="appl_your_revenuecat_apple_key"

Replace your_revenuecat_apple_key with your actual RevenueCat API key.

Test the Integration

Before publishing your app, test the payment flow in a sandbox environment. Follow RevenueCat's iOS Sandbox Testing (opens in a new tab) documentation.