setConfig static method

Future setConfig(
  1. String publicKey,
  2. String? scriptURL
)

Configures the PayEngine SDK with the provided public key and optional script URL.

  • publicKey: The public API key for authentication.
  • scriptURL: (Optional) The base URL for the PayEngine SDK.

Implementation

static Future setConfig(String publicKey, String? scriptURL) async {
  await _channel.invokeMethod(
      "setConfig", {"publicKey": publicKey, "baseURL": scriptURL});
}