This repo contains a single Azure Functions v2 function that can receive a form post and setup an appropriate subscription for it in Stripe.
The app includes just one function:
StartSubscription
- receives form POST submission and creates a subscription via Stripe
To set this up, you'll need to have an Azure Portal account.
- Fork this repository
- Create a v2 Azure Function
- Configure your function to deploy from your fork
- Set up the following App Settings for your Azure Function
Setting | Value |
---|---|
SubscriptionSuccessUrl |
where to redirect a users browser to if the subscription was successful |
SubscriptionFailureUrl |
where to redirect a users browser to if the subscription failed |
StripeApiSecretKey |
your secret key from the Developers > API keys in your Stripe dashboard |