Use the demo store custom application
Learn how to use the demo store.
The Digital River Demo Store custom application contains a React application that provides an example of how you might use the Digital River connector to integrate Digital River into a commercetools store.
The application is intended for demonstration and reference only and is NOT production ready.
Contact your Digital River representative to obtain the demo store application code. If you do not have a Digital River representative contact commercetools-Integration@digitalriver.com
Setup the demo store
Use the following steps to set up your demo store:
Follow the steps in Install and configure the commercetools connector to set up your store.
Populate your project with the commercetools Sunrise data. Follow the provided README to understand how to create a project with Sunrise.
Create an
.ENV
file with the following environmental variable values:
REACT_APP_CT_PROJECT_KEY
Your commercetools project key
REACT_APP_CT_API_URL.
Your commercetools API URL
REACT_APP_CT_AUTH_URL.
Your commercetools auth URL
REACT_APP_CT_CLIENT_ID
Your FE commercetools API key id
See commercetools-Setup for required scopes
REACT_APP_CT_CLIENT_SECRET
Your FE commercetools API key secret
See commercetools-Setup for required scopes
REACT_APP_CT_ADMIN_CLIENT_ID
API key id for admin functions
Only required if you want to use the order admin functions. These are for demo purposes only as they require manage_order and manage_payment scopes. You should never ship a FE application with a key that has these scopes.
REACT_APP_CT_ADMIN_CLIENT_SECRET
API key secret for admin functions
Only required if you want to use the order admin functions. These are for demo purposes only as they require manage_order and manage_payment scopes. You should never ship a FE application with a key that has these scopes.
Run npm install
to install dependencies.
Run and use the demo store application
To start the application, type the following at the npm
prompt:
npm start
You may also use Yarn if you prefer.
To use the application, go to http://localhost:3000.
Last updated