Closed malloc32 closed 7 years ago
Indeed, I'm struggling with the same problem.
I've tried to implement my own callback in case of error: callback(false, { code: 6778003, error : {message: "Expired"}}) But it doesn't seem to work.
Is it working for anyone?
I m trying to verify a receipt using my own server. When response is successful it works ok, but when there is an error I can't see how it works... In _validator store.utils.ajax({ url: store.validator, method: 'POST', data: product, success: function(data) { callback(data && data.ok, data.data); }, error: function(status, message) { callback(false, "Error " + status + ": " + message); } });
We can see that error callback use a boolean and a string, but in callback function:
we can see that it works with an object....
Thank you.