renderProduct static method

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

Implementation

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