CustomerManager
class CustomerManager
Manager for customer operations
Properties
Functions
Link copied to clipboard
fun create(customerInfo: CustomerInfo, termsOfService: Boolean, ageVerification: Boolean, email: String? = null, password: String? = null, callback: (Customer?, SdkError?) -> Unit? = null)
Create a customer account using customerInfo from the user. Consent for termsOfService and ageVerification should be collected from the user (e.g. checkboxes).
Link copied to clipboard
Login customer using a previously obtained customer token.
Link copied to clipboard
Link copied to clipboard
fun setNewPassword(newPasswordInfo: NewPasswordInfo, callback: (Customer?, SdkError?) -> Unit? = null)
Set password for the current customer. Provide the reset password token, current password, and new password in newPasswordInfo.