Backend Integration
To connect the Stripe plugin to your instance of ep-commerce, add the plugin to Cortex, Integration Server, and Commerce Manager, download any dependencies and start the webapps.
Self-Managed Commerce 8.4 or later
Define the version property
Add the following property definition to the extensions/pom.xml file:
<ep.plugin.payment.stripe.version>1.0.1</ep.plugin.payment.stripe.version>
Add the plugin to Cortex
In the
ep-commercedirectory, go toextensions/cortex/ext-cortex-webapp/pom.xmlfile.Search for the
copy-plugin-artifactsexecution node at<project> --> <build> --> <plugins> --> <plugin> (maven-dependency-plugin) --> <executions> --> <execution> (copy-plugin-artifacts)and add the following to the list of<configuration> --> <artifactItems>:<artifactItem> <groupId>com.elasticpath.plugins</groupId> <artifactId>stripe-payment-provider-plugin</artifactId> <version>${ep.plugin.payment.stripe.version}</version> </artifactItem>
Add the plugin to Commerce Manager
In the
ep-commercedirectory, go to theextensions/cm/ext-cm-modules/ext-cm-webapp/pom.xmlfile.Search for the
copy-plugin-artifactsexecution node at<project> --> <build> --> <plugins> --> <plugin> (maven-dependency-plugin) --> <executions> --> <execution> (copy-plugin-artifacts)and add the following to the list of<configuration> --> <artifactItems>:<artifactItem> <groupId>com.elasticpath.plugins</groupId> <artifactId>stripe-payment-provider-plugin</artifactId> <version>${ep.plugin.payment.stripe.version}</version> </artifactItem>
Add the plugin to Integration Server
In the
ep-commercedirectory, go to theextensions/integration/ext-integration-webapp/pom.xmlfile.Search for the
copy-plugin-artifactsexecution node at<project> --> <build> --> <plugins> --> <plugin> (maven-dependency-plugin) --> <executions> --> <execution> (copy-plugin-artifacts)and add the following to the list of<configuration> --> <artifactItems>:<artifactItem> <groupId>com.elasticpath.plugins</groupId> <artifactId>stripe-payment-provider-plugin</artifactId> <version>${ep.plugin.payment.stripe.version}</version> </artifactItem>
Self-Managed Commerce 8.3
Define the version property
Add the following property definition to the extensions/pom.xml file:
<ep.plugin.payment.stripe.version>1.0.1</ep.plugin.payment.stripe.version>
Add the plugin to Cortex
In the
ep-commercedirectory, go toextensions/cortex/ext-cortex-webapp/pom.xmlfile.Add the following
maven-dependency-plugincall to<project> --> <build> --> <plugins>:<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-plugin-artifacts</id> <phase>prepare-package</phase> <goals> <goal>copy</goal> </goals> <configuration> <outputDirectory>${war-plugin-directory}</outputDirectory> <artifactItems> <artifactItem> <groupId>com.elasticpath.plugins</groupId> <artifactId>stripe-payment-provider-plugin</artifactId> <version>${ep.plugin.payment.stripe.version}</version> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin>
note
The plugin section above needs to be defined as the last plugin in the plugins section.
Add the plugin to Commerce Manager
In the
ep-commercedirectory, go to theextensions/cm/ext-cm-modules/ext-cm-webapp/pom.xmlfile.Add the following
maven-dependency-plugincall to<project> --> <build> --> <plugins>:<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-plugin-artifacts</id> <phase>prepare-package</phase> <goals> <goal>copy</goal> </goals> <configuration> <outputDirectory>${plugin-directory}</outputDirectory> <artifactItems> <artifactItem> <groupId>com.elasticpath.plugins</groupId> <artifactId>stripe-payment-provider-plugin</artifactId> <version>${ep.plugin.payment.stripe.version}</version> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin>
note
The plugin section above needs to be defined as the last plugin in the plugins section.
Add the plugin to Integration Server
In the
ep-commercedirectory, go to theextensions/integration/ext-integration-webapp/pom.xmlfile.Add the following
maven-dependency-plugincall to<project> --> <build> --> <plugins>:<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-plugin-artifacts</id> <phase>prepare-package</phase> <goals> <goal>copy</goal> </goals> <configuration> <outputDirectory>${war-plugin-directory}</outputDirectory> <artifactItems> <artifactItem> <groupId>com.elasticpath.plugins</groupId> <artifactId>stripe-payment-provider-plugin</artifactId> <version>${ep.plugin.payment.stripe.version}</version> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin>
note
The plugin section above needs to be defined as the last plugin in the plugins section.
Build the project
Build all Self-Managed Commerce modules with the new configuration.
In the root ep-commerce folder, run the following command:
mvn clean install -DskipAllTests
Start the webapps
- Start ActiveMQ:
- In the
extensions/activemq-brokerfolder, runmvn tomcat8:run-war.
- In the
- Start Cortex:
- In the
extensions/cortex/ext-cortex-webappfolder, runmvn tomcat8:run-war.
- In the
- Start Integration Server:
- In the
extensions/integration/ext-integration-webappfolder, runmvn tomcat8:run-war.
- In the
- Start Commerce Manager:
- In the
extensions/cm/ext-cm-modules/ext-cm-webapp-runnerfolder, runmvn clean tomcat8:run-war.
- In the