RIAEvangelist / node-dominos-pizza-api

This is a node.js wrapper for the dominos pizza apis
MIT License
548 stars 132 forks source link

International Saudi Arabia #68

Open yazeedalrubyli opened 7 years ago

yazeedalrubyli commented 7 years ago

I don't know what's the problem, I'm successfully (validate, price and place) the order but nothing is submitted to the store.

End Point: order.golo02.dominos.com Markt: SAUDI_ARABIA

This is the result from order.place:

{ success: true,
  result: 
   { Status: -1,
     Order: 
      { Address: [Object],
        Coupons: [],
        CustomerID: '',
        Email: 'xxxxxx@gmail.com',
        Extension: '',
        FirstName: 'Yazeed',
        LastName: 'Alrubyli',
        LanguageCode: 'en',
        OrderChannel: 'OLO',
        OrderID: 'czVprnEUBW4TAAMujRop',
        OrderMethod: 'Web',
        Payments: [],
        Phone: '966xxxxxxxxxx',
        Products: [Object],
        Market: 'UNITED_STATES',
        Currency: 'SAR',
        ServiceMethod: 'Carryout',
        SourceOrganizationURI: 'order.golo02.dominos.com',
        StoreID: 62931,
        Tags: {},
        Version: '1.0',
        NoCombine: true,
        Partners: {},
        NewUser: true,
        metaData: {},
        BusinessDate: '2017-06-18',
        EstimatedWaitMinutes: '0',
        PriceOrderTime: '2017-06-18 17:03:27',
        IP: '46.152.113.217',
        Promotions: [Object],
        Status: -1,
        StatusItems: [Object],
        Amounts: [Object],
        PriceOrderMs: 1228,
        CorrectiveAction: [Object] },
     Offer: { ProductOffer: '', CouponList: [] },
     StatusItems: [ [Object] ] } }

In addition, we don't have credit card option. We have to pay upon delivery or at the store. So I did not add any type of payment when submitting the order, is this what cause the problem?

RIAEvangelist commented 7 years ago

Looks like it is still being submitted to the US.

RIAEvangelist commented 3 years ago

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

RIAEvangelist commented 3 years ago

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 commented 3 years ago

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.