This Connector is part of Trusted Shop´s SDK for building plugins based on our new plattform and architecture. You can find our detailed documentation publicly available here. Please follow these instructions to build your own plugin to connect eTrusted products with a shopsoftwaresystem.
First, run the development server:
yarn install
#then
yarn run dev
Running the application locally with a test environment, using the mock baseLayerTest.js from the src/baseLayers folder.
Open http://localhost:3000 with your browser to see the result.
Builds the app for production to the build
folder.
The production build contains a fonts
folder and files connector.es.js
, connector.umd.js
and style.css
.
Connecting the eTrusted connector is done by adding a script
tag with a link to connector.umd.js
and a link
tag
with a link to style.css
to the index.html
.
To display the connector, you need to add a div
tag with id="eTrusted-connector"
<head>
...
<link type='text/css' rel='stylesheet' href='https://static-app.connect.trustedshops.com/connector/style.css'>
</head>
<body>
<div id='app'>
...
<div id='eTrusted-connector'></div>
</div>
<script src='https://static-app.connect.trustedshops.com/connector/connector.umd.js'></script>
</body>