JSPM

strapi-hook-magento

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q32451F
  • License MIT

A hook to setup a magento service for the Strapi framework

Package Exports

  • strapi-hook-magento

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (strapi-hook-magento) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

strapi-hook-magento

This hook allows you to use Magento 2 Rest API with strapi.

Installation

# using yarn
yarn add strapi-hook-magento

# using npm
npm install strapi-hook-magento --save

Hook config

To activate and configure the hook, you need to create or update the file ./config/hook.js in your strapi app.

module.exports = {
  settings: {
    // ...
    magento: {
      enabled: true,
      clients: [
        [
          "v-media.pl",
          {
            url: "https://v-media.pl",
            consumerKey: "",
            consumerSecret: "",
            accessToken: "",
            accessTokenSecret: "",
          },
        ],
      ],
    },
  },
};

Resources