Automated deployment of stripe services in an Azure Function
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
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.
Deploy the function to Azure by clicking the button below:
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