startTransaction method

dynamic startTransaction(
  1. StandardRequest request
)

Initiates initial transaction to get web url

Implementation

startTransaction(final StandardRequest request) async {
  try {
    final StandardResponse standardResponse =
        await request.execute(this.client);
    if (standardResponse.status == "error") {
      throw (TransactionError(standardResponse.message!));
    }
    openBrowser(standardResponse.data?.link ?? "", request.redirectUrl);
  } catch (error) {
    print("error is $error");
    throw (error);
  }
}