Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

Files

Latest commit

2d57415 · Jul 5, 2018

History

History
23 lines (15 loc) · 1.23 KB

README.md

File metadata and controls

23 lines (15 loc) · 1.23 KB

Stripe Subscription Start Azure Function

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

Setup

To set this up, you'll need to have an Azure Portal account.

  1. Fork this repository
  2. Create a v2 Azure Function
  3. Configure your function to deploy from your fork
  4. 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