Giter Club home page Giter Club logo

Comments (6)

JoeIaquinto avatar JoeIaquinto commented on July 20, 2024 1

Also, I placed an order last night and today in class successfully! I'll work on figuring out which of my changes are needed to update the master branch to a more usable version right out of the box. I want to figure out how to get Customer IDs, Easy-Order IDs, and Saved card IDs so that the user can find theirs and set it. I copied the payload from my validate, price, and place order requests on Dominos.com and used them to find what is lacking in node-dominos-api so right now my version is a bit hacky,

from pizzadash.

mynamebrody avatar mynamebrody commented on July 20, 2024

I haven't made an actual order in quite some time. Let me look into this over the next week or so.

from pizzadash.

JoeIaquinto avatar JoeIaquinto commented on July 20, 2024

I think there may be flaws in the dominos api. We tested it out fully on Friday but we kept getting invalid statuses from our calls to order and validate. We believe there's something wrong with the way we or the dominos api make the order object. Because the documentation is very lackluster on Dominos's end, I've been looking into using their Twitter easy ordering feature to order with the dash button. We could make a static tweet to @Dominos when the user presses a button, and use a website for the Twitter app connection to pizzadash and redirecting users that haven't yet setup Dominos Tweet-to-order to their website. This would allow users to use the Dominos website for order entry, allow them to get rewards points, get deals and coupons, and increase security by keeping user info in the hands of Dominos.

from pizzadash.

mynamebrody avatar mynamebrody commented on July 20, 2024

@JoeIaquinto if you guys pursue this, I would recommend you creating your own repo as that would change the behavior of what this repo is doing. I have not tested this application in months (really since I made the video), but as this is a different idea of how it's implemented and intended to be used, I would not accept any pull requests with this method.

from pizzadash.

JoeIaquinto avatar JoeIaquinto commented on July 20, 2024

Completely understandable. We present our project Tomorrow so there's not enough time for us to pivot to using Twitter anyways right now. I was looking at Dominos.com last night and inspecting the API requests and responses via Chrome dev tools XHR request monitoring and I had the idea to run a proxy to intercept the outgoing requests from a user on Dominos website so that it can be repeated by the Dash button on each press. We may try to build a fork around this idea and see where it goes. I know https://github.com/maddox/dasher already exists so maybe we'll be able to use that. I really wish dominos better supported their API so that it was easier to place orders without directly using their website or apps, I think it would benefit their "AnyWare" campaign.

from pizzadash.

JoeIaquinto avatar JoeIaquinto commented on July 20, 2024

@domainzero You might want to look at the node-dominos-api more. I believe the order to call the functions is validate, price, place. It would help to post the full response in the callback from when you press the button. Dominos sends back a Status and StatusItems which give more detail on why the call was rejected (The data is formatted incorrectly, the POS system failed to process the credit card, the store is closed). You may see PriceInformationRemoved as a status item, but it's just a warning and won't prevent an order.

from pizzadash.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.