shouldSwitchView function

bool shouldSwitchView(
  1. String url,
  2. PayloadModel model
)

Method that checks if a payment confirmation link has been sent

Implementation

bool shouldSwitchView(String url, PayloadModel model) {
  if ((url.contains("vers%3Done") || url.contains("vers%3Dtwo")) &
      url.toLowerCase().contains('pubk')) {
    return true;
  } else {
    return false;
  }
}