This module contains the tools you need to test your Go back-end integration with the Yoti Sandbox service.
You can reference the sandbox by adding the following import:
import "github.com/getyoti/yoti-go-sdk/v3/profile/sandbox"
The sandbox is initialised in the following way:
sandboxClient := sandbox.Client{
ClientSdkID: sandboxClientSdkId,
Key: privateKey,
}
sandboxClientSdkId
is the Sandbox SDK identifier generated from the Sandbox section on Yoti Hub.privateKey
is the PEM file for your Sandbox application downloaded from the Yoti Hub, in the Sandbox section.
Please do not open the PEM file, as this might corrupt the key, and you will need to redownload it.
The format of privateKey
passed in to the client needs to be *rsa.PrivateKey
. See the sandboxexample_test.go to see how to easily create this struct.