INOPAY
Retour aux développeurs

SDK officiels

Trois SDK maintenus officiellement (iOS, Android, Web) plus deux en bêta (Java, Python). Chacun expose les mêmes primitives : auth, KYC, ordres, webhooks. Génération à la demande depuis l'OpenAPI.

Plateformes

Installation, initialisation et premier appel pour chaque plateforme. Tous les SDK partagent une API publique cohérente.

iOS — Swift

Installation
// 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

Installation
// 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

Installation
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

État des SDK

Versions courantes et statut de support. Les SDK bêta sont fonctionnels mais l'API peut encore changer.

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

Génération autonome

Vous avez besoin d'un SDK Ruby, PHP, Go ou C# ? Générez-le directement depuis notre OpenAPI 3.1 avec openapi-generator. Le contrat est stable et testé en CI.

# 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 et versions

Les SDK suivent semver strict. Les versions LTS sont supportées 24 mois. Changelogs et migrations sont publiés sur GitHub.

Référence SDK

SDK officiels

Trois SDK maintenus officiellement (iOS, Android, Web) plus deux en bêta (Java, Python). Chacun expose les mêmes primitives : auth, KYC, ordres, webhooks. Génération à la demande depuis l'OpenAPI.

Repo GitHub
Référence SDK