Logout API

When calling YocoSDK.logout(), this will remove all user data from the SDK and will require the 3rd party app to re-login.

Parameters

context: Context - The calling Activity/Fragment initiating the payment

Usage

import com.yoco.payments.sdk.YocoSDK
YocoSDK.logout(context = context)
note

If a user has been logged out and then attempts to perform a payment, they will be prompted to login before they can continue