jhuleatt / create-invoice-extension

Prototype of a firebase extension to create and send a Stripe invoice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Send an invoice with Stripe

An invoice is a document, associated with a sale, that a vendor provides a customer. It contains details about the exact goods or services in the sale and details on how the payment should be made.

Stripe is a payments platform that lets you send hosted invoices to your customers. You can customize the invoice to use the logo and color theme of your business. Once you send the invoice, use the Stripe dashboard to track the whether the customer has paid and how much money you processed with detailed reporting and charts.

This extension requires a Stripe account (sign up today!) and a previously configured Firestore collection. Upon installation, the extension sets up a Cloud Function that is triggered when you add a document to the Firestore collection. For example this document:

email: 'jenny-rosen@example.com',
items: [{
    amount: 2000,
    currency: 'usd',
    description: 'Growth plan'
}]

will send an invoice to jenny-rosen@example that looks like:

An invoice page showing an itemized receipt, with options to pay with card or bank transfer

That's it, now you have a way to easily collect payments đź’¸!

Pricing

This extension uses Cloud Firestore and Cloud Functions which may have associated charges depending on your plan. It also allows you to optionally use Firebase Auth to manage email and customer data.

It also uses Stripe Billing to collect payments from your customers and send invoices. You are responsible for any associated costs with your usage of Stripe.

About

Prototype of a firebase extension to create and send a Stripe invoice


Languages

Language:TypeScript 100.0%