Setup
Utility Functions
Setup
Description
Initializes Tweed's backend SDK
Parameters
Name | Type | Required | Description |
---|---|---|---|
apiKey | String | ✔️ | API key |
apiSecret | String | ✔️ | API secret |
callbacks | TweedBackendSdkCallbacks | Configuring callbacks for the checkout products:
| |
defaultBlockchainIds | String[] | ✔️ | The blockchains that will be used in the lifecycle of the integration |
Return type
You can get your API keys here.
Handle message from Frontend
Description
Handles a message that was sent by the frontend SDK
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
message | String | ✔️ | Message that came from the frontend | |
userId | String | ✔️ | Id of the authenticated user | |
userEmail | String | ✔️ | Email of the authenticated user |
Return type
Last updated