Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions components/landing/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,19 @@ const installs = [
{
value: 'java',
label: 'Java',
registry: 'Maven Central',
registry: 'JitPack',
runtime: 'Java 17 or later',
href: '/clients/java',
lang: 'xml',
code: `<dependency>
<groupId>io.github.selcom-developers</groupId>
code: `<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>

<dependency>
<groupId>com.github.selcom-developers</groupId>
<artifactId>selcom4j</artifactId>
<version>0.1.1</version>
<version>v0.1.2</version>
</dependency>`
},
{ value: 'node', label: 'Node.js', registry: 'npm', runtime: 'Node 20 or later', href: '/clients/node', lang: 'bash', code: 'npm i @selcom-developers/selcom' },
Expand Down
2 changes: 1 addition & 1 deletion components/landing/same-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const clients = [
name: 'Java',
href: '/clients/java',
runtime: 'Java 17 or later',
pkg: 'io.github.selcom-developers:selcom4j',
pkg: 'com.github.selcom-developers:selcom4j (JitPack)',
lang: 'java',
code: `Result<Responses.OrderStatusData> status =
client.orderStatus(new Requests.OrderStatus("ORD-1001"));
Expand Down
2 changes: 1 addition & 1 deletion content/clients/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: The community clients for the Selcom payment API.
The community clients follow the same [spec](/spec), so they sign requests and read results in the same way. Pick the one for your stack.

<LinkCards>
<LinkCard href="/clients/java" title="Java" detail="io.github.selcom-developers:selcom4j">Java 17 or later. One runtime dependency: Jackson databind.</LinkCard>
<LinkCard href="/clients/java" title="Java" detail="com.github.selcom-developers:selcom4j (JitPack)">Java 17 or later. One runtime dependency: Jackson databind.</LinkCard>
<LinkCard href="/clients/node" title="Node.js" detail="@selcom-developers/selcom">TypeScript and JavaScript on Node 20 or later. No runtime dependencies.</LinkCard>
<LinkCard href="/clients/python" title="Python" detail="selcompy">Python 3.10 or later. Sync and async clients on httpx.</LinkCard>
<LinkCard href="/clients/php" title="PHP" detail="selcom-developers/selcom-php">PHP 8.2 or later, any framework. PSR-18 HTTP.</LinkCard>
Expand Down
22 changes: 19 additions & 3 deletions content/clients/java.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,36 @@ Repository: [selcom-developers/selcom4j](https://github.com/selcom-developers/se

## Install

Available through [JitPack](https://jitpack.io/#selcom-developers/selcom4j). Add the repository, then the dependency.

Maven:

```xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

<dependency>
<groupId>io.github.selcom-developers</groupId>
<groupId>com.github.selcom-developers</groupId>
<artifactId>selcom4j</artifactId>
<version>0.1.1</version>
<version>v0.1.2</version>
</dependency>
```

Gradle (Kotlin DSL):

```kotlin
implementation("io.github.selcom-developers:selcom4j:0.1.1")
repositories {
mavenCentral()
maven("https://jitpack.io")
}

dependencies {
implementation("com.github.selcom-developers:selcom4j:v0.1.2")
}
```

## Quickstart
Expand Down
2 changes: 1 addition & 1 deletion content/getting-started/choosing-a-client.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Every client follows the same [spec](/spec). They sign the same way, read result

| If you use | Choose | Package name |
|---|---|---|
| Java or a JVM language | [Java](/clients/java) | Maven `io.github.selcom-developers:selcom4j` |
| Java or a JVM language | [Java](/clients/java) | JitPack `com.github.selcom-developers:selcom4j` |
| Node.js, TypeScript or JavaScript | [Node.js](/clients/node) | npm `@selcom-developers/selcom` |
| Python | [Python](/clients/python) | PyPI `selcompy` |
| PHP without a framework, or another framework | [PHP](/clients/php) | Packagist `selcom-developers/selcom-php` |
Expand Down