Configure Integrators
Configuring the YocoSDK
Once the Yoco Payment UI SDK has been initialised, you can configure the SDK with its dynamic parameters. This can be called from anywhere in your application and can be called multiple times.
To configure the YocoSDK
you will need to use the SDK Integration Key secret obtained after completing the SDK Integration Application form
You are able to change the current SDKEnvironment
which determines what urls are to be used as well as what Environment is set on the OnoSDK
import com.yoco.payment_ui_sdk.data.enums.SDKEnvironment
// Configures the Yoco Payment UI SDK
YocoSDK.configure(
context = context,
secret = "<integration secret>",
//optional: defaults to Live if none specified
environment = SDKEnvironment.LIVE,
//optional: defaults to false
enableLogging = true
)