Bibliothèques SDK

Kotlin SDK

Use Kotlin JVM helpers for payment links, customers, hosted checkout URLs, bookkeeping, and signed webhooks.

Overview

Use Kotlin JVM helpers for payment links, customers, hosted checkout URLs, bookkeeping, and signed webhooks.

  • Runtime: Kotlin JVM
  • Package: io.makepay:makepay-kotlin
  • Kotlin 2.3+
  • JDK 17+
  • Maven package planned

Installation

implementation("io.makepay:makepay-kotlin:0.1.0")

If the package registry entry is not published in your environment yet, pin the source repository to a reviewed commit and follow the repository README until the package release is available.

Authentication

Create a MakePay API key in MakeCrypto and store the key ID and secret outside source control.

Keep MakePay API keys in trusted server code, worker secrets, or private environment variables.

See API authentication for header names, rotation, and permissions.

Use the SDK or source client to call the MakePay payment links API with an amount, currency, label, customer context, return URL, and metadata. Persist the MakePay payment UID beside your internal order or invoice ID.

The request and response model is documented in payment links.

Webhook verification

Read the exact raw request body, verify the MakePay signature, reject stale timestamps, and process events idempotently.

The signing model and event payloads are documented in webhooks.

Framework notes

  • Kotlin 2.3+
  • JDK 17+
  • Maven package planned
  • Keep request creation, webhook verification, and fulfillment updates in trusted backend code.

Source and releases

Review the repository README, examples, and release notes before using the package in production.

Source repository: github.com/makepay-io/makepay-kotlin

Troubleshooting

  • Authentication failures usually mean the key ID and secret belong to different environments or were copied after rotation.
  • Webhook failures usually mean the handler parsed JSON before signature verification or the configured webhook secret does not match.
  • Checkout issues usually mean the backend did not persist the MakePay payment UID or returned an expired checkout URL.

Besoin d'aide pour la configuration partenaire ?

Ouvrez la vue des détails du lien de paiement dans MakeCrypto pour copier les extraits générés pour un UID de paiement réel, ou revenez au portail pour gérer les paramètres du marchand.

Ouvrir le portail