Marketplace
>
getConnectedAccount
xStripe

getConnectedAccount

v
0.0.2
Latest Version
Likes
0
5
Installations
0
2
Views
0
82

Overview

Retrieves the details of the connected account for the current logged in user.

Usage

### How this function works This function will retrieve the details of the connected account for the current logged in user. ### Requirements * You can retrieve accounts if you've signed up for Stripe Connect, which you can learn how to do at https://stripe.com/docs/connect. ### Function details This function will retrieve the account details by finding the account id stored in the firestore path provided. It will use the Firebase user ID as the id of the stored account document. For example, for the Firebase user with uid, the function will retrieve its associated account in STRIPE_ACCOUNTS_COLLECTION_PATH/{uid}, then it will return all the account details from stripe. To install this function you need to enter the values of the following environment variables: * STRIPE_SECRET_KEY: Your Stripe secret API key. See https://stripe.com/docs/keys. * STRIPE_ACCOUNTS_COLLECTION_PATH: The collection path where the Stripe accounts are stored. ### Resources * [Stripe Express Accounts](https://stripe.com/docs/connect/express-accounts)
Cost
FREE
Cost
Version
0.0.2
Language
JAVASCRIPT
Created At
Updated At
Workspace
xStripe
Tags
stripe
account
express
© 2023 Function Store