Skip to content

πŸ”” A serverless solution for handling App Store Server-to-Server notifications. Sends real-time purchase & subscription alerts to Discord, Telegram, and Slack. Deploy to Google Cloud Functions or Cloudflare Workers. Features: Multi-platform support, customizable formats, error handling, timezone support

License

Notifications You must be signed in to change notification settings

kdrmlhcn/ios-iap-events-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“± App Store Server-to-Server Notifications Handler

Real-time App Store server-to-server (s2s) notifications handler for in-app purchases and subscriptions. Get instant notifications about your app's transactions directly to your favorite platforms!

License: MIT Node.js Version PRs Welcome

πŸ“„ Detailed Setup Guide

For a comprehensive, step-by-step guide on setting up and configuring this project, check out our GUIDE.md. The guide includes:

  • Detailed platform setup instructions (Discord, Telegram, Slack)
  • Step-by-step deployment guides for both Google Cloud Functions and Cloudflare Workers
  • Integration instructions for Adapty, RevenueCat, and direct App Store Connect setup
  • Example notifications and customization options
  • Cost considerations and platform comparisons
  • Security best practices and technical details
  • Troubleshooting tips and advanced features

✨ Features

  • πŸ”„ Real-time Processing: Instant App Store server-to-server notifications
  • πŸ“± Multi-Platform Support:
    • Telegram (with rich markdown formatting)
    • Discord (with beautiful embeds)
    • Slack (with custom attachments)
  • 🌍 Smart Formatting:
    • Country detection with flag emojis
    • Automatic price formatting
    • Timezone support
  • πŸ›‘οΈ Reliable & Secure:
    • Configurable retry mechanism
    • Error handling
    • Sandbox environment support
  • πŸ—οΈ Flexible Deployment:
    • Google Cloud Functions
    • Cloudflare Workers

πŸš€ Why Use This?

  • Real-time Monitoring: Stay informed about every purchase, renewal, and refund
  • Easy Integration: Simple setup with popular notification platforms
  • Cost-Effective: Generous free tiers on both deployment platforms
  • Customizable: Adapt the notifications to your needs
  • Reliable: Built-in retry mechanism and error handling

πŸ“‹ Prerequisites

Before you begin, ensure you have:

  • Node.js >= 20.0.0
  • One or more of the following:
    • Telegram Bot Token & Chat ID
    • Discord Webhook URL
    • Slack Webhook URL

πŸ’° Platform Free Tiers

Google Cloud Functions

  • ✨ 2 million invocations/month
  • 🎁 No credit card required
  • 🌐 Multiple regions
  • πŸ“Š Detailed monitoring

Cloudflare Workers

  • ⚑️ 100,000 requests/day
  • 🌍 Global edge deployment
  • πŸ›‘οΈ DDoS protection
  • πŸš€ Ultra-low latency

πŸ“¬ What You'll Receive

Get beautiful, formatted notifications for:

  • πŸ’« New purchases
  • πŸ”„ Subscription renewals
  • ↩️ Refunds
  • ⚠️ Billing issues
  • 🎯 Subscription status changes

πŸ”’ Security Features

  • βœ… Signature verification
  • πŸ” Secure webhook handling
  • πŸ›‘οΈ Environment validation
  • πŸ“ Audit logging

🌟 Benefits

  • For Indie Developers:

    • Monitor your app's revenue in real-time
    • Quick response to customer issues
    • No infrastructure maintenance
  • For Teams:

    • Shared notification channels
    • Customizable alerts
    • Easy integration with existing workflows

πŸ“ˆ Performance

  • ⚑️ Fast processing times
  • πŸ”„ Automatic retries
  • 🌐 Global availability
  • πŸ’ͺ Scalable architecture

🀝 Support

Need help? We're here for you!

πŸ“„ License

This project is licensed under the MIT License - making it free to use for your personal or commercial projects.


Made with ❀️ for the iOS developer community

Star this repo β€’ Report bug β€’ Request feature

About

πŸ”” A serverless solution for handling App Store Server-to-Server notifications. Sends real-time purchase & subscription alerts to Discord, Telegram, and Slack. Deploy to Google Cloud Functions or Cloudflare Workers. Features: Multi-platform support, customizable formats, error handling, timezone support

Resources

License

Stars

Watchers

Forks