Skip to content

FabFit/vercel-iap-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

In App Payments Redirect for Vercel

Unfortunately Apple only allow developers to add a single domain for their In App Payments (IAP) web hooks, cause you know, who needs a development environment?

This project is a single Lambda that will redirect to a given URL depending on whether or not the webhook came from Apple's production environment. It exposes a single endpoint /api/redirect that can redirect to two seperate environments.

Getting started

This project has been configured to run on Vercel all you need to do is press the button below to clone this repository and deploy under your own Vercel account.

Deploy with Vercel

Pressing the above button will also create two environment variables, if you'd prefer not to use the automatic deployments then you will need to manually add the following variables:

  • DEVELOPMENT_REDIRECT: your development API endpoint
  • PRODUCTION_REDIRECT: your production API endpoint

Once deployed update your webhook URL in App Store Connect to <domain>/api/redirect.

About

Redirect Apple IAP webhooks using Vercel's platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published