Type "select"

If your function implementation needs to make a single selection between a group of static options like selecting a type of a Stripe Connected Account (express, standard, or custom), you can use environment variables of type select in your implementation. Then our platform will ask consumers to enter their value during installation.‌

The type select variables allow the consumers of a function to select one of the elements from a list of options, which you need to define using the options prop. This type is displayed in the installation UI form as a select element (see image below).

Example of a type "select" environment variable definition

"env": [
        "name": "CONNECTED_ACCOUNT_TYPE",
        "description": "The type of account you need to create for each user that receives money on your platform.",
        "required": true,
        "type": "select",
        "options": [
        "default": "standard"

Example of how to consume the value of the environment variable within the function implementation

const myFunction = () => {
    const connectedAccount = process.env.CONNECTED_ACCOUNT_TYPE

module.exports = myFunction;

Properties of the type

Last updated