Elastic Path Commerce Plugin 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.
Defining the version property
Add the following property definition to the extensions/pom.xml
file:
<ep.plugin.payment.stripe.version>802.0.0</ep.plugin.payment.stripe.version>
Adding the plugin to Cortex
In the
ep-commerce
directory, go toextensions/cortex/ext-cortex-webapp/pom.xml
file.Add the following
maven-dependency-plugin
call to<project> --> <build>
:<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> </plugins> </build>
Adding the plugin to Commerce Manager
In the
ep-commerce
directory, go to theextensions/cm/ext-cm-modules/ext-cm-webapp/pom.xml
file.Add the following
maven-dependency-plugin
call to<project> --> <build>
:<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> </plugins> </build>
Adding the plugin to Integration Server
In the
ep-commerce
directory, go to theextensions/integration/ext-integration-webapp/pom.xml
file.Add the following
maven-dependency-plugin
call to<project> --> <build>
:<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> </plugins> </build>
Building the project
Build all Elastic Path Commerce modules with the new configuration.
In the root ep-commerce folder, run the following command:
mvn clean install -DskipAllTests
Starting the webapps
- Start ActiveMQ:
- In the
extensions/activemq-broker
folder, runmvn tomcat8:run-war
.
- In the
- Start Cortex:
- In the
extensions/cortex/ext-cortex-webapp
folder, runmvn tomcat8:run-war
.
- In the
- Start Integration Server:
- In the
extensions/integration/ext-integration-webapp
folder, runmvn tomcat8:run-war
.
- In the
- Start Commerce Manager:
- In the
extensions/cm/ext-cm-modules/ext-cm-webapp-runner
folder, runmvn clean tomcat8:run-war
.
- In the