public void CreateStaticPayload()
        {
            var cobranca = new Cobranca(_chave: "bee05743-4291-4f3c-9259-595df1307ba1");

            var payload = cobranca.ToPayload("O-TxtId-Aqui", new Merchant("Alexandre Sanlim", "Presidente Prudente"));

            var stringToQrCode = payload.GenerateStringToQrCode();

            Assert.IsFalse(string.IsNullOrEmpty(stringToQrCode));
        }
        public void CreateStaticPayloadWithOptinalInfo()
        {
            Cobranca cobranca = new Cobranca(_chave: "bee05743-4291-4f3c-9259-595df1307ba1")
            {
                SolicitacaoPagador = "Informar cartão fidelidade",
                Valor = new Valor
                {
                    Original = "1.00"
                }
            };

            var payload = cobranca.ToPayload("O-TxtId-Aqui", new Merchant("Alexandre Sanlim", "Presidente Prudente"));

            var stringToQrCode = payload.GenerateStringToQrCode();

            Assert.IsFalse(string.IsNullOrEmpty(stringToQrCode));
        }
        public void RaisePresentation()
        {
            if (string.IsNullOrEmpty(Key))
            {
                return;
            }

            Xamarin.Essentials.MainThread.BeginInvokeOnMainThread(() =>
            {
                Cobranca cobranca = new Cobranca(_chave: Key)
                {
                    SolicitacaoPagador = Description,
                    Valor = new Valor
                    {
                        Original = Value
                    }
                };

                var payload = cobranca?.ToPayload("PIXOFF" + Guid.NewGuid().ToString("N").Substring(0, 10), new Merchant(Name, City));

                Payload = payload?.GenerateStringToQrCode();
            });
        }