Skip to content

Automated deployment of stripe services in an Azure Function

Notifications You must be signed in to change notification settings

toolboc/stripe-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stripe-function

Automated deployment of stripe services in an Azure Function Logo

Background

Allows for hosted payment processing using Stripe. A great solution for pages created with static-site generators, that require some form of payment services.

For more information refer to this blog post:

Ridiculously Cheap Subscription and Payment Services with Stripe and Azure Functions

Features

Out the box support for monthly subscription and redirection to host domain. The deployment will likely require manual modification to meet desired functionality. Use this to get started, then visit the deployed function in Azure to modify to your needs.

Usage

Deploy the function to Azure by clicking the button below:

Deploy to Azure

You can test the deployed function by creating an html file with the following:

<form action="URL_TO_YOUR__AZURE_FUNCTION (will look something like this: https://MYFUNCTIONDOMAIN.azurewebsites.net/api/FUNCTIONNAME?code=TMU4yAbRxEPq8/aHAjW2naiGYp27ja6rJYUQahSSRbbjkPP5NoYkfg==" method="POST">

  <script

src="https://checkout.stripe.com/checkout.js" class="stripe-button"

data-key="pk_live_YOUR_STRIPE_KEY"

data-image="images/marketplace.png"

data-name="My Online business"

data-description="1-Week Subscription Plan"

data-amount="350"

data-label="Sign Up Now For Only Tree-Fiddy!">

  </script>

</form>

You can then test that processing works using any of the test card values available @ https://stripe.com/docs/testing#cards

Logo

About

Automated deployment of stripe services in an Azure Function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published