Hello, I've been trying to create a customer using the methods the android sdk for clover provides, first I setup the customer connector and then try to create a customer but it doesn't seem to do anything. What am I supposed to be doing? Any help would be appreciated. The code I've used is below.
fun connectCustomer() {
customerConnector = CustomerConnector(getApplication(), cloverAccount, onCustomerServiceListener)
customerConnector?.connect()
}
private val onCustomerServiceListener = object : ServiceConnector.OnServiceConnectedListener {
override fun onServiceConnected(connector: ServiceConnector<out IInterface>?) {
createCustomer()
}
override fun onServiceDisconnected(connector: ServiceConnector<out IInterface>?) {
}
}
fun createCustomer(){
viewModelScope.launch {
customerConnector?.createCustomer("Name", "Name", false)
}
}