INOPAY
Back to developers

Official SDKs

Three officially maintained SDKs (iOS, Android, Web) plus two in beta (Java, Python). Each exposes the same primitives: auth, KYC, orders, webhooks. On-demand generation from the OpenAPI.

Platforms

Install, init and first call for each platform. All SDKs share a consistent public API.

iOS — Swift

Install
// Package.swift
.package(url: "https://github.com/inopay/inopay-ios", from: "1.4.2")
Quickstart
import InopaySDK

let client = InopayClient(
  apiKey: "sk_test_4bX9...",
  environment: .sandbox
)

let attestation = try await client.kyc.verify(id: "att_4XK9RZ")
let order = try await client.orders.create(.init(
  rcptTo: "sgi_partner_001",
  instrument: "SNTS.BRVM",
  side: .buy, qty: 10, limitPriceCents: 1_250_000
))
github.com/inopay/inopay-ios

Android — Kotlin

Install
// build.gradle.kts
implementation("com.getinopay:inopay-android:1.4.0")
Quickstart
import com.getinopay.sdk.InopayClient
import com.getinopay.sdk.Environment

val client = InopayClient.Builder()
  .apiKey("sk_test_4bX9...")
  .environment(Environment.SANDBOX)
  .build()

val attestation = client.kyc.verify("att_4XK9RZ")
val order = client.orders.create(
  rcptTo = "sgi_partner_001",
  instrument = "SNTS.BRVM",
  side = Side.BUY, qty = 10, limitPriceCents = 1_250_000,
)
github.com/inopay/inopay-android

Web — TypeScript

Install
npm install @inopay/web-sdk@1.5.1
Quickstart
import { InopayClient } from '@inopay/web-sdk';

const client = new InopayClient({
  apiKey: 'sk_test_4bX9...',
  environment: 'sandbox',
});

const attestation = await client.kyc.verify('att_4XK9RZ');
const order = await client.orders.create({
  rcptTo: 'sgi_partner_001',
  instrument: 'SNTS.BRVM',
  side: 'buy', qty: 10, limitPriceCents: 1_250_000,
});
github.com/inopay/inopay-web

SDK status

Current versions and support status. Beta SDKs are functional but the API may still change.

SDKVersionStatusNotes
iOS / Swift1.4.2StableiOS 16+ · SwiftPM
Android / Kotlin1.4.0StableAPI 24+ · Maven Central
Web / TypeScript1.5.1StableESM + CJS · Tree-shakable
Java0.9.0BetaJDK 17+ · Spring-friendly
Python0.6.0Beta3.10+ · async/await

Self-service generation

Need a Ruby, PHP, Go or C# SDK? Generate it directly from our OpenAPI 3.1 with openapi-generator. The contract is stable and CI-tested.

# Generate a Ruby client from the public OpenAPI 3.1
docker run --rm -v "$PWD/out:/local" \
  openapitools/openapi-generator-cli:v7 generate \
  -i https://www.getinopay.com/docs/openapi.yaml \
  -g ruby \
  -o /local/inopay-ruby \
  --additional-properties=gemName=inopay,gemVersion=1.0.0

# Languages tested in CI: ruby, php, go, csharp, rust, dart

Support and versions

SDKs follow strict semver. LTS versions are supported for 24 months. Changelogs and migration guides are published on GitHub.

SDK reference

Official SDKs

Three officially maintained SDKs (iOS, Android, Web) plus two in beta (Java, Python). Each exposes the same primitives: auth, KYC, orders, webhooks. On-demand generation from the OpenAPI.

GitHub repo
SDK reference