Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jaspreet1234567 opened this issue Apr 6, 2018 · 3 comments

Comments

@jaspreet1234567
Copy link

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
Copy link

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
Copy link

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
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants