For integrating Java projects with the AltaPay gateway.
-
Create local
gradle.properties
file in the root of the project with the following content:usr=USER pwd=PASSWORD
Replace
USER
andPASSWORD
with 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.xsd
file 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>2.0.2</version>
</dependency>
implementation 'com.altapay:sdk-java:2.0.2'
See Changelog for all the release notes.
Distributed under the MIT License. See LICENSE for more information.
For more details please see AltaPay docs