> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://ixopay.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://ixopay.ferndocs.com/_mcp/server.

# Java SDK

The IXOPAY Java library provides convenient access to the IXOPAY APIs from Java.

## Installation

#### Gradle

Add the dependency in your `build.gradle` file:

```groovy
dependencies {
  implementation 'com.ixopay:ixopay-sdk:0.0.1'
}
```

#### Maven

Add the dependency in your `pom.xml` file:

```xml
<dependency>
  <groupId>com.ixopay</groupId>
  <artifactId>ixopay-sdk</artifactId>
  <version>0.0.1</version>
</dependency>
```

## Usage

```java
package com.example.usage;

import com.ixopay.api.IxopayApiClient;
import com.ixopay.api.resources.preparetransaction.requests.PrepareDebitRequest;
import com.ixopay.api.types.Currency;

public class Example {
    public static void main(String[] args) {
        IxopayApiClient client = IxopayApiClient
            .builder()
            .credentials("<username>", "<password>")
            .build();

        client.prepareTransaction().processPrepareDebit(
            "apiKey",
            PrepareDebitRequest
                .builder()
                .amount("amount")
                .currency(Currency.AED)
                .build()
        );
    }
}
```

See the [full reference](https://github.com/fern-demo/ixopay-java-sdk/blob/main/reference.md) for every resource and method, or browse the [source on GitHub](https://github.com/fern-demo/ixopay-java-sdk).