conekta / conekta-.net

Conekta.net is a sync/async .NET 4.6.1+ client, and a portable class library for conekta.io
MIT License
17 stars 19 forks source link

Unprocessable Entity. #49

Closed JaiderMM closed 4 years ago

JaiderMM commented 4 years ago

Estoy tratando de configurar en un nuevo proyecto la opcion de Oxxo PAY. Usando el ejemplo de la documentacion. conekta.Order order = new conekta.Order ().create(@"{ ""line_items"": [{ ""name"": ""Tacos"", ""unit_price"": 1000, ""quantity"": 12 }], ""shipping_lines"": [{ ""amount"": 1500, ""carrier"": ""FEDEX"" }]," + //shipping_lines - physical goods only @"""currency"": ""MXN"", ""customer_info"": { ""name"": ""Fulanito Pérez"", ""email"": ""fulanito@conekta.com"", ""phone"": ""+5218181818181"" }, ""shipping_contact"":{ ""address"": { ""street1"": ""Calle 123, int 2"", ""postal_code"": ""06100"", ""country"": ""MX"" } }," + //shipping_contact - required only for physical goods only @"""charges"":[{ ""payment_method"": { ""type"": ""oxxo_cash"", ""expires_at"": " + thirtyDaysFromNow + @" } }] }");

Pero siempre devuelve. Remote server returned an error: (422) Unprocessable Entity.