prepareForCheckout static method

Future<SumupPluginResponse> prepareForCheckout()

Calling prepareForCheckout() before instancing a checkout will speed up the checkout time.

Don't call this method during checkout because it can lead to checkout failure. Login required.

Implementation

static Future<SumupPluginResponse> prepareForCheckout() async {
  _throwIfNotInitialized();
  await _throwIfNotLoggedIn();
  final method = await _channel.invokeMethod('prepareForCheckout');
  return SumupPluginResponse.fromMap(method);
}