项目作者: Azure-Functions

项目描述 :
Start subscriptions in Stripe via form posts (v2)
高级语言: C#
项目地址: git://github.com/Azure-Functions/stripe-subscription.git
创建时间: 2018-07-04T19:45:49Z
项目社区:https://github.com/Azure-Functions/stripe-subscription

开源协议:MIT License

下载


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