createToken method

Future<Either<BkashFailure, TokenResponseModel>> createToken()

Creates a new token for authorizing payment operations.

Returns a TokenResponseModel if the token creation is successful, or a BkashFailure indicating the reason for failure.

Implementation

Future<Either<BkashFailure, TokenResponseModel>> createToken() async =>
    await _tokenApi.createToken();