PaySimple / PaySimpleSDK

.NET SDK for PaySimple API v4
Other
4 stars 1 forks source link

Better option for Address #8

Closed Heysoulnat88 closed 7 years ago

Heysoulnat88 commented 7 years ago

It would be great in my part if the address classes is in the Customer model,

got this error.. "Object reference not set to an instance of an object." I think I got a wrong value in coding, can you gave me an example of Billing address that I can put in the field?? , what do you think of this error?? BillingAddress = { StreetAddress1 = formCollection["StreetAddress1"], StreetAddress2 = formCollection["StreetAddress2"], City = formCollection["City"], StateCode = (StateCode)Enum.Parse(typeof(StateCode), formCollection["StateCode"]), Country = (CountryCode)Enum.Parse(typeof(CountryCode), formCollection["Country"]), ZipCode = formCollection["ZipCode"] }