Eleventy Stripe Boilerplate

screenshot of Eleventy Stripe Boilerplate

Overview

The Eleventy Stripe Boilerplate is a project that provides a simple boilerplate for managing payments with the Eleventy static site generator (11ty) using Serverless functions. The project includes two serverless functions, stripe-get-checkout.js and stripe-get-payment-intent.js, which allow for easy integration with Stripe payment processing. This boilerplate is aimed at developers who want to manage payments within their 11ty projects.

Features

  • Serverless Functions: The boilerplate includes two serverless functions, stripe-get-checkout.js and stripe-get-payment-intent.js, which enable seamless integration with Stripe's payment processing functionalities.
  • Checkout with Stripe: The stripe-get-checkout.js function allows transactions to take place on Stripe's servers, providing a convenient way to handle payments without managing product information.
  • Customizable Payment Intent: The stripe-get-payment-intent.js function allows for complete customization and the freedom to store product information elsewhere, giving developers more flexibility in managing payments.
  • Shipping Calculation: The included methods make it easy to calculate shipping costs for products.
  • Configurable API Integration: The stripe function in the _data folder allows for easy retrieval of data from Stripe's API at build time, making it suitable for creating dashboards or managing dynamic content related to payments.

Summary

The Eleventy Stripe Boilerplate is a simple and convenient solution for integrating Stripe payment processing into 11ty projects. With serverless functions for both checkout and payment intent, along with methods for calculating shipping and configurable API integration, this boilerplate provides developers with a solid foundation for managing payments within their 11ty projects.