Prembly SDK
Available library/SDK for quick integration
STEPS ON USING THE NEW SDK INSIDE YOUR APP (Web, Mobile, Backend)
Create a widget on the dashboard, after creating the widget, make a request to Base URL - https://api.prembly.com
- After creating the widget on the dashboard, make a request to this https://api.prembly.com/checker/sdk/widget/initialize endpoint to initialize the SDK for a unique customer:
| Request Header | Description |
|---|---|
| x-api-key | Your secret Key |
Request Body
| Key | Description |
|---|---|
| User's email address | |
| first_name | user's first name |
| last_name | user's last name |
| user_ref | user's unique reference number |
| config_id | configuration ID returned when SDK was created |
| extra_metadata | can be an array/object of extra data you want to add to SDK |
Sample Response
> {
> "success": true,
> "code": "",
> "detail": "Initialization successful",
> "data": {
> "status": true,
> "widget_id": "d57b1d89-8f6c-4ef3-99e8-4c88bc71fd6b"
> }
> }
Base URL:
-
Get the widget_id value (d57b1d89-8f6c-4ef3-99e8-4c88bc71fd6b)
-
Then redirect the user to this URL: "https://sdk-view.prembly.com/{widget_id}"
- Sample URL: https://sdk-view.prembly.com/d57b1d89-8f6c-4ef3-99e8-4c88bc71fd6b
- You can also open the URL on the device browser, or webview/iframe inside your app, it depends on your preference.
Updated 18 days ago
