πŸ“Structure of the Initialization Object

Let's take a closer look at the parameters we passed when calling `Lamba`

Helpful tip: always refer back to this section for a proper list of all the parameters you can provide when initializing Lamba object.

Structure of the Init. object

The table below summarizes the different parameters that can be supplied when creating a new Lamba instance:

Property
Type
Meaning
Required

title

String

The name of your product, website or app

No

icon

String

The icon url of your product's logo. Helpful for white-labeling or branding the Lamba UI to your own taste.

No

theme

String

One of either light or dark should be selected to toggle between the light and dark modes of the Lamba UI. It's important to note that when you switch to either light or dark theme, you should ideally update the icon to an image that complements the chosen theme variation.

No

appId

String

The id of the app you created from your Lamba dashboard

Yes

customerId

String

The Customer ID of the user you added to your app (e.g cus_x1673). Do you remember what we discussed in the section Creating Your First App? Please do check it out.

The reason for utilizing your own product/model IDs for each user is to avoid the need to add a new column or record in your current database for tracking users newly created in your Lamba app. Consequently, the userId from your database can be employed to look up the corresponding user (i.e., customerId) in your Lamba app.

Yes

enabledServices

Array or Object

Helps you specify the kind of services you'd want to display in the Lamba UI. All services are shown by default, if omitted or set to an empty array

No

...

To enable only email services

...

To enable specific services and their contained products

lowFiConfig

Object

e.g

Helps you specify the payment structure of each payment gateway in the low_fi service

No (unless low_fi service is enabled

usageCapabilities

Array of String

(e.g one of ['connect'] and ['connect','use'])

Specifies if the customerId is limited to only connecting a service, or if they can both connect and utilize the services they have connected.

Yes (at least one of connect and use must be provided)

Available services and their corresponding products:

Service
Available Products

low_fi

"stripe" | "paystack" | "seerbit" | "flutterwave" | "budpay"

low_mail

"gmail" | "sendgrid" | "mailgun" | "postmark" | "custom"

low_sms

"twilio" | "infobip" | "clickatell" | "africastalking"

low_meet

"zoom" | "google_meet" | "microsoft_teams" | "calendly" | "webex"

low_social

"facebook" | "linkedin" | "instagram" | "x" | "reddit" | "tiktok" | "snapchat" | "pinterest" | "behance" | "dribble" | "telegram" | "youtube" | "discord" | ""

low_cms

"medium" | "hashnode" | "devto"

low_ai

"chatgpt"

Last updated

Was this helpful?