Giter Club home page Giter Club logo

moip-net's People

Contributors

michaeloc avatar zoiverd avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

moip-net's Issues

Criar Pagamento

Estou tentando criar um pagamento com boleto e recebo o retorno que a data de Expiração é invalida. Passo um DateTime como pede na model.

Sabe se mudou algo?
Abraço

unhandled exception

Estou utilizando essa biblioteca via xamarin forms e estou tendo problemas pra fazer rodar..
basicamente o codigo não funciona como deveria e causa o travamento da aplicação.
Fiz esse código para testar se minha conta sandbox pelo menos receberia o pedido, mas o app nem consegue fazer alguma coisa. Alguem sabe o que posso estar fazendo errado?

meu codigo é esse:

try
                {

                    var v2Client = new V2Client(new Uri("https://sandbox.moip.com.br/"),
                        "token",
                        "chave");

                    var pedido = new Pedido()
                    {
                        OwnId = "12",
                        Amount = new Valores()
                        {
                            Currency = CurrencyType.BRL,
                            Subtotals = new Subtotal()
                            {
                                Shipping = int.Parse(entry.Text)
                            }
                        },
                        Items = new List<ItemPedido>()
                {
                    new ItemPedido(){
                        Product = "Saldo para a conta Famous",
                        Quantity = 1,
                        Detail = "Saldo total escolhido pelo cliente",
                        Price = int.Parse(entry.Text)
                    }
                },
                        Customer = new Cliente()
                        {
                            OwnId = user.Id,
                            Fullname = user.Login,
                            Email = "[email protected]",
                            BirthDate = DateTime.Now.Date.AddYears(-18).ToString("yyyy-MM-dd"),
                            TaxDocument = new Documento()
                            {
                                Type = DocumentType.CPF,
                                Number = cpf.Text
                            },
                            Phone = new Telefone()
                            {
                                CountryCode = 55,
                                AreaCode = 11,
                                Number = 999999999
                            },
                            ShippingAddress = new Endereco()
                            {
                                ZipCode = "01234000",
                                Street = "Avenida Faria Lima",
                                StreetNumber = "2927",
                                Complement = "SL 1",
                                City = "São Paulo",
                                District = "Itaim",
                                State = "SP",
                                Country = "BRA"
                            }
                        }
                    };

                    var clienteCriado = v2Client.CriarPedido(pedido);
                }
                catch (MoipException ex)
                {
                    Console.WriteLine(ex);
                }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.