brucealdridge / VendAPI

Class for accessing the api for vend on vendhq.com
Other
36 stars 22 forks source link

Unable to register sale #11

Closed klair closed 11 years ago

klair commented 11 years ago

Thanks for the class, has been a huge help and using it extensively.

A few weeks ago I was able to register a sale without any issues, then recently I started getting this error: Fatal error: Uncaught exception 'VendAPI\Exception' with message 'Error: Recieved null result from API', when saving the sale.

The same "save" method works fine for adding a product, this only happens for adding a sale.

Any help with problem solving this issue would be much appreciated. Let me know if you need any further info. Thanks

brucealdridge commented 11 years ago

Are you using the latest version? I believe i've fixed the bug locally but haven't pushed it up yet. Will see if i can commit a fix in a few hours

klair commented 11 years ago

I had the old version which I upgraded and it hasn't seemed to make any difference. Would be great if you had a fix!

brucealdridge commented 11 years ago

Its working fine for me without an exception, maybe you are sending through broken data? before doing you save run this $vend->debug(true) and either send me the output or attach it to this issue. and i can have a look

klair commented 11 years ago

Thank you so much for your time, after some trial and error we eventually found that the client had deleted one of the payment types we had setup. I wish there was a way of getting some meaningful data back from Vend i.e. paymewnt type doesn't exist etc. Would like to show our appreciation for your class and support, let me know if you have a paypal account etc.

brucealdridge commented 11 years ago

I know how you feel, i've stuggled for many hours on simple missing fields paypal account is bruce.aldridge@gmail.com

thanks bruce

On Fri, Aug 16, 2013 at 8:42 PM, klair notifications@github.com wrote:

Thank you so much for your time, after some trial and error we eventually found that the client had deleted one of the payment types we had setup. I wish there was a way of getting some meaningful data back from Vend i.e. paymewnt type doesn't exist etc. Would like to show our appreciation for your class and support, let me know if you have a paypal account etc.

— Reply to this email directly or view it on GitHubhttps://github.com/brucealdridge/VendAPI/issues/11#issuecomment-22754544 .