Beispiel #1
0
        public async Task CobGetByTxId()
        {
            var cobRequest = new CobRequestService();
            var cb         = await cobRequest.GetByTxId("39088ca5f6a94069b541d1b7347a918a");

            Assert.IsFalse(string.IsNullOrEmpty(cb?.Txid));
        }
Beispiel #2
0
        public async Task QrCodeGetDynamic()
        {
            var cobRequest = new CobRequestService();

            var cob = await cobRequest.GetByTxId("496b0fd872ba49a0ad5b55572debdabf");

            var payload = cob.ToPayload(new Merchant("Alexandre Lima", "Presidente Prudente"));

            var stringToQrCode = payload.GenerateStringToQrCode();

            Assert.IsFalse(string.IsNullOrEmpty(stringToQrCode));
        }