EventDay / Infusionsoft.net

A C# Wrapper around the Infusionsoft.com API
15 stars 22 forks source link

API ChargeInvoice response contains implicit string value where integer expected #59

Open jaspreet1234567 opened 6 years ago

jaspreet1234567 commented 6 years ago

Hello, I am new to infusionsoft. I am using Infusionsoft.net SDK for payment in my project. All methods like "VerifyCreditCard", "CreateBlankOrder", "AddOrderItem" etc. are working fine. When I call the "ChargeInvoice" method then following error is occurred.

"response contains implicit string value where integer expected [response : struct mapped to type ChargeInvoiceResult : member RefNum mapped to type Int32]".

I don't know why this error occurred because the response model used by this method is also present in dll. In this model the data type of "RefNum" field is int while expecting string. Is it issue? How can I fix it?

I am using infusionsoft.net 1.0.15

Please reply as soon as possible.

Thanks in advance.

Mazintico commented 4 years ago

I'm having the same issue. Is this project still being maintained (since jaspreet1234567 opened this issue about 2 years ago and there is no answer to it)?

Mazintico commented 4 years ago

By inspecting the source code I realized that this issue has been actually fixed but somehow a new public version with the fix has not been published. What I did was cloning the source code, generated the dll locally and set a reference to this local version from my project and it worked. Hope this helps!

jaspreet1234567 commented 4 years ago

@Mazintico , I also did the same thing. I cloned the source code and locally generated required dll's. I think this is only solution we can do till we get the new/fixed version from infusionsoft.