renderCartPage static method

Future<String> renderCartPage(
  1. String language,
  2. String country,
  3. String publicKey,
  4. double amount,
)

Implementation

static Future<String> renderCartPage(
    String language, String country, String publicKey, double amount) async {
  try {
    final result =
        await platform.invokeMethod('renderCartPage', <String, dynamic>{
      'language': language,
      'country': country,
      'publicKey': publicKey,
      'amount': amount
    });
    return result;
  } on PlatformException catch (e) {
    showToast(e.message.toString());
    rethrow;
  }
}