Beispiel #1
0
        public async Task <IActionResult> VerifyTransaction(long transactionId)
        {
            try
            {
                var verify = await _settlement.VerifyTransaction(transactionId);

                if (verify == true)
                {
                    var generateSettlement = await _settlement.GenerateSettlement(transactionId);

                    return(Ok(generateSettlement));
                }
                return(BadRequest("Could Not Verify Transaction and No statement Could be Generated"));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }