Ok if it’s batter than that installer than i will must use this. I love customization liberty. Thank You
I followed this tutorial and successfully intigrated gloriafood. Now i have a problem. VAT is missing. If i put items manually from POS than its correct. But online order doesn’t have VAT.
I am getting this error after I run “node script.js”
How do I fix this?
SyntaxError: Unexpected token < in JSON at position 0
It means the server/site is not returning properly formatted JSON string.
It is likely returning an error message (page) instead, which cannot be parsed as JSON, because the page starts with something like
<!DOCTYPE html> or
<html> or whatever (ie. the
< in JSON at position
0 part of the error message), which is found in the beginning of a webpage, which is not JSON.
A possible cause of this is that you are not sending a good message request to the server in the first place, so it gives an error page in response. It could be telling you that you are not authenticated, or your request is bad/unknown, or the site is down, or your internet is down, or…
How do I make it so that it/we sends/receives a correctly formatted JSON string?
edit: I pinged google.com on the same cmd window, so that does mean I have internet access.
Can I see your script? I do not have access to that category.
I use the official gloriafood integration and no longer use this method. The official integration works really well.
My Delivery Rules and Actions are heavily modified compared to the default one. Would it still work?
Yes. It just works. You can design a flow around it easily.
Form data is surly the data submitted as part of the request?
Sorry, i don’t get your question. Should i include username and password in token link?
I don’t understand your question.
You get error saying invalid client ID.
Are they both screenshot of your system or from forum?
Oh, sorry, my bad. First one is Emre’s image, the second one is mine. As you can see, in the second image there is no Form Data section. So, my question is how i can get that Form Data?
Show your request.
Your getting invalid client id, are you not passing any data into the request?
I entered http://localhost:9000/Token and after that if i enter to Chrome Dev Tools i cannot find that Form Data section with grant_type, username, password, client_id and client_secret fields to enter. I want to get the same error “Client ‘pmpos’ is not registered in the system” as in Emre’s image. But i cannot find those fields.
Do you want to login GraphQL query screen? It’s address is http://localhost:9000/Login
If you want to write code to login our message server yes thats post address is http://localhost:9000/Token
Please write us what you want to do?
i want to get access token
Login from login screen right click and choose inspect. So you can see the token
How to find the terminal id ?
I am trying to test the payTerminalTicket mutation.
This is what i have done: -
- In my system where sambapos is installed, i placed couple orders in the POS on few tables.
- I tried to use payTerminalTicket but it requires terminal ticket ID, so i registered terminal using GQL on browser console.Now it showed the terminal Id which it created.
- But when i ran the mutation this time using that terminal ID, it throws error, no ticket found
i think it is saying that no ticket was created using that terminal ID.
- So i created ticket and placed orders using that Teminal ID. and then used the mutation, it worked.
But my question is how can i use mutation for already placed orders using the POS Terminal. WHat is the terminal ID of that system, how can i find that ID ?
Can you help please ?