loginWithToken static method

Future<SumupPluginResponse> loginWithToken(
  1. String token
)

Login to SumUp with a token

Implementation

static Future<SumupPluginResponse> loginWithToken(String token) async {
  try {
    final response = await sumup_lib.Sumup.loginWithToken(token);
    return _createResponse(response.status, response.message);
  } catch (e) {
    return _createResponse(false, {'error': e.toString()});
  }
}