requestToken method
Exchange a digital wallet payment token or card details for a reference token that can be used later to request a card payment. Tokens are single use and expire after 15 minutes. To create a token, please authenticate using your public key.
Implementation
@override
Future<TokenResponse> requestToken(TokenRequest tokenRequest) async {
Map responseMap = await apiBase.call(
RESTOption.post,
resource: _tokens,
headers: headers,
body: tokenRequest.toJson(),
);
return TokenResponse.fromMap(responseMap);
}