Server set-up for SDKs
The following document will walk you through 2 different options for the required server set-up while using any of Dapi SDKs.
Server-based
Server-based set-up is the most secure way of setting up interactions between your users and Dapi. This flow is highly recommended for any client using the Payment API.


SDK Server Based Flow
Serverless
Serverless set-up requires less development work, but cannot ensure the same level of security as the server-based set-up does. This flow is not recommended for any client using the Payment API, but it can be utilized by Data API clients or for building a POC/MVP of a product.
It is possible at any given moment to switch from Serverless to Server-based flow and vice versa.


SDK Serverless Flow
Summary
Server-based | Serverless | |
---|---|---|
Security | ✅ More secure |
|
Using Payment API? | ✅ | ❌ Not recommended |
Using Data API? | ✅ | ✅ |
Building a POC/MVP? | ✅ | ✅ Less development overhead |
What if I change my mind? | Possible to switch to | Possible to switch to |
Updated about 2 months ago