Back

App Store Integration Guide

This guide walks you through the complete setup process for Refund Guard, from subscribing to verifying that everything works. Follow the steps in order to get up and running in as little as about 5 minutes.

You will complete these steps:

  1. Choose a subscription plan (Pro annual recommended, 7-day free trial)
  2. Configure App Store Connect API credentials
  3. Connect your app and set up server notifications
  4. Send a test notification
  5. Receive and verify the test notification

1. Prerequisites

Before you start, make sure you have:

2. Step 1: Choose a Subscription Plan

Why subscribe? Refund Guard requires an active subscription to protect your apps. We recommend the Pro plan with annual billing for the best value. If you have higher needs, you can choose the Premium plan.

2.1 Available Plans

2.2 7-Day Free Trial

Try before you buy: All subscription plans come with a 7-day free trial. You can explore all features of your chosen plan during the trial period. If you're not satisfied, you can cancel before the trial ends and you won't be charged.

2.3 How to Subscribe

  1. Log in to Refund Guard and go to the Subscription tab
  2. Review the available plans — we recommend Pro with annual billing for most developers
  3. If you have higher needs, you can choose the Premium plan
  4. Click Subscribe and add a payment method
  5. Your 7-day free trial starts immediately — you won't be charged until the trial period ends

Tip: Annual billing saves you significant money compared to monthly billing. You can always upgrade or downgrade your plan later from the Subscription tab.

3. Step 2: Configure App Store Connect API Credentials

Refund Guard uses an App Store Connect API key to verify transactions and send consumption data to Apple. Follow these steps to create and connect the key.

3.1 Open Users and Access

  1. Sign in to App Store Connect.
  2. In the top bar, click Users and Access.

3.2 Create an In-App Purchase API Key

  1. In Users and Access, open the Integrations tab.
  2. In the left sidebar, select In-App Purchase.
  3. Click the Create key button (the + icon next to "Active").
App Store Connect In-App Purchase keys page

3.3 Generate the API Key

A dialog will appear. Enter a name for the key (e.g., "Refund Guard") and click Generate. The key will be added to your active keys list.

Generate In-App Purchase Key dialog

3.4 Collect Your Credentials

On the In-App Purchase keys page, collect the following three values:

Copy Issuer ID, Key ID, and download the .p8 private key

3.5 Enter Credentials in Refund Guard

  1. Log in to Refund Guard and go to the Settings tab.
  2. Paste your Issuer ID into the Issuer ID field.
  3. Paste your Key ID into the Key ID field.
  4. Upload your .p8 file into the In-App Purchase Key field.
  5. Click Save Changes to store your credentials securely.
Refund Guard Settings — enter your Issuer ID, Key ID and upload the .p8 key

4. Step 3: Connect Your App

Now you'll connect your app in Refund Guard and configure App Store Server Notifications so Apple can send real-time refund events directly to Refund Guard.

4.1 Connect Your App in Refund Guard

  1. In Refund Guard, go to the Apps tab.
  2. Click Connect App.
  3. Enter your App Store URL or Apple ID and click Connect.
  4. Once connected, your app will display a unique Webhook URL. Copy this URL — you will need it in the next step.
Refund Guard dashboard - Apps tab with Connect App dialog and Webhook URL

4.2 Set the Production Server URL in App Store Connect

4.2.1 Select Your App

  1. Sign in to App Store Connect.
  2. In the top bar, click Apps and select your app.

4.2.2 Open App Store Server Notifications

  1. Open the App Information section (in the left sidebar under General).
  2. Scroll down to the App Store Server Notifications section.
  3. In the Production Server URL section, click Set Up URL (or Edit if already configured).
App Store Connect App Information — App Store Server Notifications section with Set Up URL

4.2.3 Configure the URL

  1. In the Production Server URL field, paste the Webhook URL you copied from Refund Guard.
  2. Click Save.
Production Server URL dialog in App Store Connect

If you already have another URL configured: Replace it with the Refund Guard URL in App Store Connect, then add your original URL to Refund Guard's notification forwarding list (see Section 7) so Refund Guard can forward events to your existing destination.

5. Step 4: Send a Test Notification

After configuring the URL, verify that Refund Guard can successfully send a test notification to Apple.

5.1 Send the Test Notification

  1. In Refund Guard, go to the Apps tab and find your app.
  2. Click the Send Test Notification button.
  3. Wait for the confirmation message — this may take a few seconds.
Send Test Notification button in Refund Guard Apps tab

5.2 Verify the Test Was Sent

If successful, you will see a confirmation message indicating that the test notification was sent. If you see an error:

What the test does: The test notification simulates a real App Store Server Notification and verifies that Refund Guard can authenticate with Apple's API and process the notification correctly.

6. Step 5: Receive the Test Notification

After sending the test notification, you should receive it in Refund Guard's Consumption Notifications tab. This confirms that the entire flow — from Apple to Refund Guard — is working correctly.

6.1 Check the Consumption Notifications Tab

  1. In Refund Guard, go to the Consumption Notifications tab.
  2. Look for the test notification — it should appear within a few seconds to a minute.
  3. The notification will be labeled as a test notification and show the notification type and timestamp.

6.2 What a Successful Setup Looks Like

If you see the test notification in the Consumption Notifications tab, congratulations — your integration is complete and working correctly! Refund Guard will now automatically:

Test notification received in Consumption Notifications tab

If you don't see the test notification: Wait up to 2 minutes — sometimes there is a slight delay. If it still doesn't appear, go back and verify that the Production Server URL is correct and click the Send Test Notification button again.

7. Optional: Notification Forwarding

Refund Guard can forward the notifications it receives from Apple to additional endpoints — such as your own backend, analytics services, or subscription management tools.

Common use cases:

To configure forwarding:

  1. In Refund Guard, go to the Apps tab and select your app.
  2. Find the Notification Forwarding URLs section and click Add or Edit.
  3. Add the destination URLs you want to forward to.
  4. Click Save to apply the changes.
Notification Forwarding URLs configuration in Refund Guard app settings

Note: Refund Guard processes each notification first (to handle refund requests), then forwards it to all configured URLs.

8. Summary

For a complete and reliable integration, you have now completed:

  1. Chosen a subscription plan (Pro annual recommended, with 7-day free trial)
  2. Configured App Store Connect API credentials (Issuer ID, Key ID, .p8 key) in Refund Guard Settings
  3. Connected your app in Refund Guard and set the Production Server URL in App Store Connect
  4. Sent a test notification to verify the connection works
  5. Received the test notification in the Consumption Notifications tab, confirming end-to-end functionality

Your App Store integration is now complete. Refund Guard will automatically protect your App Store revenue by responding to refund requests with accurate consumption data.

Need Help?

If you encounter any issues during integration, please contact us at [email protected] and we'll be happy to help.

Back