fullScriptURL property

String get fullScriptURL

Returns the full URL of the script.

The fullScriptURL getter returns the complete URL of the script. This URL is used to fetch the script from the server.

Example usage:

String url = payengineConfig.fullScriptURL;

Implementation

String get fullScriptURL {
  if (scriptURL != null &&
      scriptURL!.isNotEmpty &&
      scriptURL!.contains("embed.js")) {
    return scriptURL!;
  }
  return "$baseURL/js/1.0.0/embed.js?key=$publicKey&logLevel=10";
}