LogoLogo
  • Digital River commercetools 1.0
    • System Requirements
    • Upgrade path
  • Understand the Digital River commercetools integration
    • Understand the integration workflow
    • Features
    • What’s new for Digital River's commercetools integration 1.0
  • Install and configure the Digital River commercetools integration
  • Create integration access keys
  • Configure the integration
    • Configure Digital River in Dashboard
    • Configure commercetools
    • Map shared data used in the integration
  • Deploy the integration
    • Understand integration environment variables
  • Use the commercetools Merchant Center custom application
    • Install and deploy the Merchant Center custom application
    • Configure the Merchant Center custom application
    • Integrate with a store for payments
    • Configure shipping methods
    • Enable customer management options
    • Understand integration logs
    • Merchant Center custom application user guide
      • Authorize a payment
      • Cancel an authorization
      • Capture a payment
      • Use the demo store custom application
      • Refund a payment
  • Support
Powered by GitBook
On this page
  • Install the Merchant Center custom application
  • Deploy the Merchant Center custom application
  • Create an .ENV file
  • Deploy the custom application
  1. Use the commercetools Merchant Center custom application

Install and deploy the Merchant Center custom application

Learn how to install and deploy the commercetools Merchant Center custom application.

PreviousUse the commercetools Merchant Center custom applicationNextConfigure the Merchant Center custom application

Last updated 2 years ago

Install the Merchant Center custom application

To install the commercetools Merchant Center application, contact your Digital River representative to obtain the Merchant Center application needed for deployment. If you do not have a Digital River representative, contact .

Deploy the Merchant Center custom application

Once you have installed the Merchant Center custom application, complete the following tasks to deploy it for use in your integration.

Create an .ENV file

Create a .env (environment variables) file with the following contents:

ENABLE_NEW_JSX_TRANSFORM="true"
FAST_REFRESH="true"
REACT_APP_PUBLIC_ENCRYPTION_KEY=<your PUBLIC encryption key>
PRODUCTION_URL=<url where the custom application is accessible>
MANUAL_PRODUCT_SYNC_ENDPOINT=<url where the connector us accessible>/api/v1/products/sync
ENTRY_POINT_URI_PATH=digital-river
APPLICATION_ID=<application id>
MANAGE_PERMISSION=ManageDigitalRiver

The next table shows additional details about the properties shown in the example above:

Property
Source

REACT_APP_PUBLIC_ENCRYPTION_KEY

PRODUCTION_URL

Depends on how you are deploying the custom application

MANUAL_PRODUCT_SYNC_ENDPOINT

APPLICATION_ID

Refer to Configure Merchant for more information on this property.

Deploy the custom application

The custom application can be deployed using one of the following methods:

  • By using a provided Dockerfile that creates an image that can be deployed to a cloud provider. A Google Cloud Run deployment example of this method is provided below in this topic.

Dockerfile and Google Cloud Run deployment example

Use the following steps to deploy the Merchant Center custom application in a Dockerfile/Google Cloud Run environment:

Build the container

docker build -t <a tag> . 

The tag should include the version from the package.json.

Push the container to a registry

This step depends upon the infrastructure that you are using. Refer to your infrastructure documentation for details on this process.

Deploy the container

The following shows an example of how to deploy the container:

gcloud run deploy <your service name> \
  --image <location of the image in the registry> \
  --project <your project> \
  --platform managed \
  --region <your region> \
  --allow-unauthenticated

See the topic for details on access keys. Use only the lines between the BEGIN and END, and concatenate them to a single line.

Depends on how you are deploying connector. commercetools adds a JWT to the request which is used for for . As such, there is no need to secure this endpoint

By following the instructions in one of the provided by commercetools.

commercetools-Integration@digitalriver.com
guides
Create integration access keys
authentication