Logging out the user

Overview

Calling YocoSDK.logout() removes all user data from the SDK. The next time a payment is attempted, the user will be prompted to log in again.

Parameters

ParameterTypeDescription
contextContextThe calling Activity/Fragment initiating the logout.

Usage

1import com.yoco.payments.sdk.YocoSDK
2
3YocoSDK.logout(context = context)