add membership subscription to asp.net mvc web app

2019-04-09 18:49发布

问题:

I would like to add membership subscription to an asp.net mvc web site. I would prefer to use an existing library to incorporate membership and subscription functionality. I searched and could not find any libraries or nuget modules.

I would like to use the Braintree framework to create and manage the subscription and the payments, but I found no integration examples.

回答1:

I work at Braintree. If you have more questions, you can always reach out to our support team.

Braintree has extensive integration examples, and specifically has a guide on implementing recurring billing:

Say you want to start a subscription service that offers a 1 month free trial and then charges $9.99 per month indefinitely (until the Customer chooses to cancel).

Here's how we will do that:

  1. Create a Plan
  2. Create a Customer with a stored payment method
  3. Subscribe the Customer to the Plan
  4. Confirm the Customer subscription