Receive JSON via Moip POST on a C#/. Net MVC platform

Asked

Viewed 31 times

0

[C#/. Net][Moip] Personal, I use a payment platform (Moip) and it has a function that send notification in JSON format to the URL you registered, which will be from your system on the server. I want to know now how I get BODY from this JSON. Anyone have any idea??? I’ve been searching for a solution for days!!!

  • You create a class with the identical key nomenclature of your json properties, when your method is called it will make an implicit conversion of the json values to the mapped class.

  • Or you deserialize the json for the type dynamic. https://www.newtonsoft.com/json/help/html/QueryJsonDynamic.htm

  • But include in your question the method where you are receiving the json and the response template that you need to process.

  • i to na Controller "Affiliations" and the function is "Webhook", so I registered the url "http://54.233.161.49:8090/Affiliations/Webhook". Then I put something in the parameter? Already caught inside the function with some method of C#? To very lost

  • @Sandersoncorrêa developed the library here: github.com/matmiranda/Moipcsharp for C#

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.