Google은 흑인 공동체를 위한 인종적 평등을 추구하기 위해 노력하고 있습니다. 자세히 알아보기

Stripe를 사용하여 인보이스 보내기

Stripe
Made by Stripe

Stripe 결제 플랫폼을 사용하여 브랜드를 삽입할 수 있는 고객 인보이스를 만들고 전송합니다.

이 확장 프로그램의 작동 방식

Use this extension to create and send brandable customer invoices using the payments platform Stripe .

The invoices are automatically customized with the logo and color theme of your business that you've set up in Stripe. After the invoice is sent, you can use the Stripe dashboard to track whether the customer has paid and how much money you processed with detailed reporting and charts.

This extension listens to your specified Cloud Firestore collection for new documents (like the example below). When you add a document, Stripe uses the invoice information in the document to create an invoice in their system then sends the invoice to the email address specified in the document. You can optionally manage your customer email addresses using Firebase Authentication user IDs.

email: "customer@example.com",
items: [{
    amount: 2000,
    currency: "usd",
    quantity: 2, // Optional, defaults to 1.
    description: "Growth plan"
}]

Here's an example of what your customized invoice will look like!

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

An optional feature of this extension is to automatically update the invoice's status in its Cloud Firestore document. You can configure this feature after installing the extension by registering a Stripe webhook that listens for Stripe invoice events . If you want to use this optional feature, leave the parameter Stripe webhook secret empty during installation, then reconfigure your installed extension later with the actual value for your registered webhook. More details about this process are provided after installation.

Additional setup

Before installing this extension, set up the following Firebase services in your Firebase project:

You must also have a Stripe account and a Stripe API key before installing this extension.

Note: Stripe has a test mode that lets you make API calls without making actual payments. To use this extension with Stripe's test mode, set the extension's Stripe API key parameter (during extension configuration) to use a test mode key. A test mode key looks like rk_test_12345 , whereas a live mode key would be rk_live_12345 . As this extension only requires write access to your Stripe customers and invoices resources, we recommend that you create a restricted key with limited access to only these resources rather than using your secret key.

Billing

This extension uses the following Firebase services which may have associated charges:

  • Cloud Firestore
  • Cloud Functions
  • Firebase Authentication (optional)

This extension also uses the following third-party services:

You are responsible for any costs associated with your use of these services.

Note from Firebase

To install this extension, your Firebase project must be on the Blaze (pay-as-you-go) plan. You will only be charged for the resources you use. Most Firebase services offer a free tier for low-volume use. Learn more about Firebase billing.

Starting August 17 2020, you will be billed a small amount (typically less than $0.10) when you install or reconfigure this extension. See the Cloud Functions for Firebase billing FAQ for a detailed explanation.

확장 프로그램 설치 방법

Firebase Console 사용

Firebase Console을 사용해 확장 프로그램을 설치하고 관리할 수 있습니다.

Console을 사용해 설치하기

Firebase CLI 사용

Firebase CLI를 사용해 확장 프로그램을 설치하고 관리할 수도 있습니다.

1단계: 다음 npm 명령어를 실행하여 CLI를 설치하거나 최신 CLI 버전으로 업데이트합니다.

npm install -g firebase-tools
작동하지 않는 경우 Firebase CLI 참조 를 살펴보거나 npm 권한 을 변경하세요.

2단계: 새 Firebase 프로젝트 디렉터리를 설정 하거나 기존 디렉터리로 이동합니다.

3단계: 다음을 실행하여 이 확장 프로그램을 확장 프로그램 매니페스트 에 추가합니다.

firebase ext:install stripe/firestore-stripe-invoices --local --project=projectId_or_alias

Step 4 (Optional): Test this extension locally with the Firebase Emulator Suite

firebase emulators:start

5단계: 매니페스트의 확장 프로그램을 프로젝트에 배포 합니다.

firebase deploy --only extensions --project=projectId_or_alias
지원
Authentication Cloud Firestore
작성자
협업 파트너
라이선스
Apache-2.0
버전
0.2.0