handleTransactionResponse method

Future handleTransactionResponse(
  1. dynamic response,
  2. BuildContext context
)

Implementation

Future handleTransactionResponse(dynamic response, BuildContext context) {
  dynamic responseJson = response.body;
  if (responseJson.status == "Pending") {
    return handle3dsChallenge(responseJson);
  } else if (responseJson.status == "Success" || responseJson.status == "Authorized") {
    return handleSuccessTransaction(response, context);
  } else {
    return handleDeclinedTransaction(response);
  }
}