Giter VIP home page Giter VIP logo

Comments (6)

chrisli-sas avatar chrisli-sas commented on June 19, 2024 1

It works after changing shop.domain.ca to just domain.ca, thank you so much for your help

from shopify-api-js.

paulomarg avatar paulomarg commented on June 19, 2024

Hey! Unfortunately, the domain for the session must be a valid Shopify store, because that is the domain we'll use to query the APIs, so it can't be customized.

Shopify supports a number of different ways for you to customize checkout using apps, you can find more information in our documentation.

We use issues in this repo to track bugs in the package, but this is a case we can't really support, so I'll close the issue. If you have any more questions, I would suggest visiting the Community Forums, where you might be able to get better answers if you have questions about a specific use case.

Hope this helps!

from shopify-api-js.

chrisli-sas avatar chrisli-sas commented on June 19, 2024

Hey! Unfortunately, the domain for the session must be a valid Shopify store, because that is the domain we'll use to query the APIs, so it can't be customized.

Shopify supports a number of different ways for you to customize checkout using apps, you can find more information in our documentation.

We use issues in this repo to track bugs in the package, but this is a case we can't really support, so I'll close the issue. If you have any more questions, I would suggest visiting the Community Forums, where you might be able to get better answers if you have questions about a specific use case.

Hope this helps!

Thank you for the response, the domain I'm trying to use is a valid Shopify store, I set it as primary domain for my Shopify store, I can use it for hostname when creating shopify object but not in session

from shopify-api-js.

paulomarg avatar paulomarg commented on June 19, 2024

Oh! If your domain is a valid store domain, you can use the customShopDomains setting to allow values other than myshopify.com.

I'll reopen this since it is a valid use case, please let me know if that works for you.

from shopify-api-js.

chrisli-sas avatar chrisli-sas commented on June 19, 2024

Thank you, is this the correct way of using customShopDomains? I'm having the same issue using this config

const shopify = shopifyApi({
  apiKey: '',
  apiSecretKey: '',
  apiVersion: LATEST_API_VERSION,
  isCustomStoreApp: true,
  adminApiAccessToken: '',
  isEmbeddedApp: false,
  hostName: '*.myshopify.com',
  privateAppStorefrontAccessToken: '',
  customShopDomains: ['shop.domain.ca'],
});

from shopify-api-js.

paulomarg avatar paulomarg commented on June 19, 2024

You wouldn't add the shop part, just *.domain.ca.

from shopify-api-js.

Related Issues (20)

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.