Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (28 loc) · 1.3 KB

POSTINSTALL.md

File metadata and controls

39 lines (28 loc) · 1.3 KB

See it in action

You can test out this extension right away!

  1. Go to your Cloud Firestore dashboard in the Firebase console.

  2. If it doesn't already exist, create the collection you specified during installation: ${param:FIRESTORE_PATH}.

  3. Generate a sample Google Pay token.

  4. Add a document with information corresponding to your configured PSP. For example:

    psp: 'braintree',
    total: 100,
    currency: 'USD',
    paymentToken: <Google Pay API payment token>
  5. In a few seconds, you'll see result fields appear in the document.

Note: You can also use the Firebase Admin SDK to add a document:

admin
  .firestore()
  .collection("${param:FIRESTORE_PATH}")
  .add({
    psp: 'braintree',
    total: 100,
    currency: 'USD',
    paymentToken: <Google Pay API payment token>
  })
  .then(() => console.log("Payment request submitted!"));

Monitoring

As a best practice, you can monitor the activity of your installed extension, including checks on its health, usage, and logs.