Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

How to use razopay jar in AEM code base.

Avatar

Level 3

Hi folks ,

We have a requirement in our project where we want to implement razor-pay as our payment gateway. We want razorpay client to achieve this feature for which we have converted the maven jar of razorpay as bundle and done the following things as below.
Step 1. Converted the razorpay jar to bundle using eclipse.
Step 2. Under Core folder created a subfolder with name repository and placed the bundle in it and executed the below command which led to creation of pom and maven-metadata-local.xml file.

mvn install:install-file -Dfile=com.razorpay.jar \
-DgroupId=com.razorpay \
-DartifactId=razorpay-java \
-Dversion=1.4.6\
-Dpackaging=jar \
-DlocalRepositoryPath=repository

 Step 3.  Under core pom file added dependency .

<dependency>
<groupId>com.razorpay</groupId>
<artifactId>razorpay-java</artifactId>
</dependency>

Step 4. Under project pom added dependency as below.

<dependency>
<groupId>com.razorpay</groupId>
<artifactId>razorpay-java</artifactId>
<version>1.4.6</version>
</dependency>

 Step 5. Under All pom file added dependency as well as embed.

<embedded>
<groupId>com.razorpay</groupId>
<artifactId>razorpay-java</artifactId>
<type>jar</type>
<target>/apps/myproject-packages/application/install</target>
</embedded>
<dependency>
<groupId>com.razorpay</groupId>
<artifactId>razorpay-java</artifactId>
</dependency>

 Now after building the project its throwing error under ALL folder as

Unable to get bundle symbolic name from artifact com.razorpay:razorpay-java:1.4.6

Kindly let us know how to resolve this issue or may be there can be any other way to use razorpay client.
Note : we are using AEM cloud service.


@Roshan2410002

Kind Regards,
Kaushik Datta

1 Accepted Solution

Avatar

Correct answer by
Level 8
1 Reply

Avatar

Correct answer by
Level 8