Reading structure from NameValueCollection

Now I am working on a payment processor class, and I ended up at a checkpoint. I use the FastSpring e-commerce service and they have a good set of tools, but I'm stuck in one thing.

For PayPal IPN, to get the person’s name (this is C # / ASP code), I would do the following:

base.Context.Request.Params["first_name"]

With FastSpring, they seem to store information in a structure, as shown here in the "client": http://nvsx.net/i/c2252.png

How can I change my code to correctly create this structure from the context of an HTTP post?

Update:

NameValueCollection: http://pastie.org/1346312

Client Key Value: {0} --> {1}Customercom.brightmarket.api.variable.v1.contact.ContactVariable@175d7aa

+3
source share
1 answer

, , ? .

-

var contact = (ContactVariable)Context.Request.Params[str];

?

+1

Source: https://habr.com/ru/post/1778452/


All Articles