Exemplo n.º 1
0
        public async void Test_CheckPaymentStatusByRequestId()
        {
            var transactions = await _paymentClient.GetTransactions();

            Assert.NotEmpty(transactions);

            var resp = await _paymentClient.CheckPaymentStatusByRequestId(transactions[0].RequestId);

            Assert.NotNull(resp);
        }
Exemplo n.º 2
0
        public async void Test_CheckPaymentStatusByRequestId()
        {
            var transactions = await _paymentClient.GetTransactions();

            Assert.NotEmpty(transactions);

            var transactionWithRequestId = transactions.FirstOrDefault(i => !string.IsNullOrEmpty(i.RequestId));

            if (transactionWithRequestId == null)
            {
                return;
            }
            await Task.Delay(200);

            var resp = await _paymentClient.CheckPaymentStatusByRequestId(transactionWithRequestId.RequestId);

            Assert.NotNull(resp);
        }