webview3DS method

Widget webview3DS(
  1. {String transactionId,
  2. String url,
  3. Function onClosePressed,
  4. Function onCompleteRedirect}
)

Implementation

Widget webview3DS(
    {String transactionId,
    String url,
    Function onClosePressed,
    Function onCompleteRedirect}) {
  String baseUrl =
      isProduction == true ? midtransProductionUrl : midtransStagingUrl;
  return Webview3DS(
    midtransBaseUrl: baseUrl,
    serverKey: serverKey,
    onClosePressed: onClosePressed,
    onCompletedNavigation: onCompleteRedirect,
    transactionId: transactionId,
    url: url,
  );
}