コード例 #1
0
        public static BoletoPayment BoletoTransactionResponse()
        {
            var paymentId = Guid.NewGuid();

            var boletoTransaction = new BoletoPayment
            {
                Amount = 15057,
                Provider = ProviderEnum.Bradesco,
                Country = "BRA",
                Currency = "BRL",
                PaymentId = paymentId,
                ReasonCode = 0,
                Type = "Boleto",
                ReasonMessage = "Successful",
                Status = 1,
                Links = new List<Link>
                {
                    new Link
                    {
                          Href = "https://apisandbox.braspag.com.br/v2/sales/" + paymentId,
                          Method = "GET",
                          Rel = "self"
                    }
                }
            };

            return boletoTransaction;
        }
コード例 #2
0
        public static BoletoPayment BoletoTransactionRequest()
        {
            var boletoTransaction = new BoletoPayment
            {
                Amount = 15057,
                Provider = ProviderEnum.Bradesco,
                Country = "BRA",
                Currency = "BRL"
            };

            return boletoTransaction;
        }