update
Update customer info for the logged in customer.
Example:
fun updateCustomer() {
val customerInfo = CustomerInfo (
name = "Marty McFly",
carType = "DeLorean",
carColor = "Silver",
licensePlate = "OUTATIME"
)
FlyBuyCore.getInstance().customer.update(customerInfo) { customer, sdkError ->
if (null != sdkError) {
// Handle error
} else {
// Handle success
}
}
}Content copied to clipboard