For integrating Java projects with the AltaPay gateway.
-
Create local
gradle.propertiesfile in the root of the project with the following content:usr=USER pwd=PASSWORD
Replace
USERandPASSWORDwith your credentials in case you're willing to publish the artifact to the Maven repository. -
Run the following command to build the project:
./gradlew clean build
-
To update the SDK with the latest payment gateway changes, please replace the
src/main/xsd/APIResponse.xsdfile with the newest version and run:./gradlew clean xjc build
-
To publish the artifact to the local Maven repository, first comment-out:
signing { sign publishing.publications.mavenJava }
then run:
./gradlew publishToMavenLocal
The artifact will be published to the local Maven repository.
<dependency>
<groupId>com.altapay</groupId>
<artifactId>sdk-java</artifactId>
<version>3.1.6</version>
</dependency>
implementation 'com.altapay:sdk-java:3.1.6'
See Changelog for all the release notes.
Distributed under the MIT License. See LICENSE for more information.
For more details please see AltaPay docs