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

International India #2

Open
darkyen opened this issue Feb 22, 2015 · 28 comments
Open

International India #2

darkyen opened this issue Feb 22, 2015 · 28 comments

Comments

@darkyen
Copy link

darkyen commented Feb 22, 2015

No description provided.

@RIAEvangelist
Copy link
Owner

not sure. I would love to know, please test

@RIAEvangelist
Copy link
Owner

closing due to inactivity

@darkyen
Copy link
Author

darkyen commented Mar 27, 2015

Well I will try now x)

@RIAEvangelist
Copy link
Owner

awesome

@RIAEvangelist
Copy link
Owner

if you can provide some example calls from the Indian dominos we can start integrating them.

@RIAEvangelist RIAEvangelist reopened this Jun 18, 2015
@RIAEvangelist RIAEvangelist changed the title Does this work in India ? Support for India Jun 18, 2015
@zubinmehta
Copy link

@RIAEvangelist Here is the link for ordering: https://pizzaonline.dominos.co.in/

I can help out if you need anything to get this done.

I figured out that it makes calls to https://pizzaonline.dominos.co.in/getLocality/homedelivery/?city_id=<CITY_NAME> where CITY_NAME list is standardized. However, when I briefly tried to create requests(using python) to get this locality, it seems like it needs cookies to be sent in the headers which are set in the browser. Not sure if it will be possible to do this from the commandline script ?

On the pizza order page: it does a post request to https://pizzaonline.dominos.co.in/quickadd with {product_id:11
quantity:1
csrf_token:
}

At the same time, it also does a POST on https://pizzaonline.dominos.co.in/view/cart

and it returns the following after the addition of a single pizza: (alongwith the key upselling which is irrelevant)

{"session_id":"b7c3efb4506d1223ba8df8db9f09800e","customer_basket_info":[{"customers_basket_id":"1625913","products_model":"PIZZA","products_name":"Veg Extravaganza","attributes_details":"Crust : Classic Hand Tossed\nToppings : Black Olive + Onion + Crisp Capsicum + Mushroom + Fresh Tomato + Golden Corn + Jalapeno + Cheese\nSize : Medium (serves 2)","customers_basket_quantity":"1","final_price":"535","product_level_coupon_line_id":"0","order_level_coupon_line_id":"0","applied_coupon_line_id":"0","products_id":"11#983573,984255,983684,983687,983690,983693,983696,983699,983702,984318","product_image":"vegextra.png","product_details":""}],"net_price":"535","tax_price":"0.00","total_price":"535","upselling": ........

@rkaushik97
Copy link

I cannot find the API key for dominos India website.I logged in and searched in account settings.

@MetalDent
Copy link

Is this issue fixed or it's still not working for Domino's India?

@madelinecameron
Copy link
Collaborator

There shouldn't be an API key needed @kaushikraghupathruni. It uses a completely open REST API that the site uses.

This is why some countries can use the library with a simple change of URLs and others can't.

@ghost
Copy link

ghost commented Aug 13, 2019

can someone link me to complete api with interface to take a look
it would be much appreciated cause i am new to this

@RIAEvangelist RIAEvangelist changed the title Support for India International India Feb 24, 2021
@RIAEvangelist
Copy link
Owner

v3.x branch international settings should make this possible now. Still need to work out the endpoints, but everything is baked in to support it.

@RIAEvangelist
Copy link
Owner

v3 now supports international apis.

Please have a look. If you can not find your API endpoints request help again, and we can work on it together. I will need to work with someone in country to make sure the order completes and you get Pizza.

@RIAEvangelist
Copy link
Owner

If anyone would like to contribute the API list as defined in docs/InternationalSupport.md

I would be happy to implement it into the code. I do need help from contributors though because I do not know addresses etc to use for testing without traveling to the country on my own.

Help would be greatly appreciated, and the world of Pizza lovers would thank you.

@RIAEvangelist
Copy link
Owner

@abhyuday-tripathi

Here is the objecct we need populated from docs/InternationalSupport.md

Please replace the URLs with the India URLs and I will integrate it into the code after we test.

You can find more details in the link above if you need.

{
      referer   :"https://order.dominos.nz/en/pages/order/",
      sourceUri :"order.dominos.nz",
          location:{
          find:urls.location.find
      },
      store     : {
          find    : "https://order.dominos.nz/power/store-locator?s=${line1}&c=${line2}&type=${type}",
          info    : "https://order.dominos.nz/power/store/${storeID}/profile",
          menu    : "https://order.dominos.nz/power/store/${storeID}/menu?lang=${lang}&structured=true"
      },
      order     : {
          validate: "https://order.dominos.nz/power/validate-order",
          price   : "https://order.dominos.nz/power/price-order",
          place   : "https://order.dominos.nz/power/place-order"
      },
      track   : "https://order.dominos.nz/orderstorage/GetTrackerData?"
}

@alestor123
Copy link

Ok does it support delivery in india @RIAEvangelist and also we have to convert the price to Indian rupee

@RIAEvangelist
Copy link
Owner

If you add in the URLs, everything should automatically be done in Rupees.

@bucharitesh
Copy link

Is it working for Domino's india ? Did anyone try it ?

@RIAEvangelist
Copy link
Owner

RIAEvangelist commented Jun 18, 2021 via email

@RIAEvangelist
Copy link
Owner

RIAEvangelist commented Jun 18, 2021 via email

@rishabhkeshan
Copy link

Hey in India, we get an OTP based on our debit card number, how will we support that. @RIAEvangelist I am up for working on the integration and testing.

@RIAEvangelist
Copy link
Owner

RIAEvangelist commented Jun 23, 2021 via email

@RIAEvangelist
Copy link
Owner

@rishabhkeshan I do not know what an OTP is.

@bucharitesh
Copy link

Hey why don't we test COD first because Domino's had severe multiple data breaches. Me and my friends are ready to integrate and work with you on this. Plus the testing part.

@gems2000
Copy link

gems2000 commented Jul 2, 2021

OTP is One-Time Password. It works as a 2FA for payments and authentication platforms.

@RIAEvangelist
Copy link
Owner

RIAEvangelist commented Jul 2, 2021 via email

@rishabhkeshan
Copy link

Yeah I would too like to help out with it, can decide on a suitable time next week

@abhyuday-tripathi
Copy link

I think we should try Cash on Delivery first

@RIAEvangelist
Copy link
Owner

@rishabhkeshan and @abhyuday-tripathi I think trying CoD first is a good option, do you need help trying this?

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

No branches or pull requests