Skip to content

Documentation

From API key to first test payment.

Most integrations send a first test transaction within the hour. This page shows the shape of the work.

Ways in

  • 4 SDKs

    JavaScript, Python, PHP, Ruby

  • REST API

    For any system that can make an HTTPS request

  • Webhooks and plugins

    25+ platform integrations

A first payment, in a few lines.

JavaScript SDK

import { Caldrys } from "@caldrys/sdk";const caldrys = new Caldrys("sk_test_9fK2…");// Charge a customer in their own currencyconst payment = await caldrys.payments.create({  amount: 4900, // 49.00, in minor units  currency: "EUR",  customer: { email: "buyer@example.com" },  description: "Order 1042",});console.log(payment.status);

An illustrative example with a shortened test key; the names shown are for illustration.

What the example does

  1. Creates a client with a test key.
  2. Asks for a payment of €49.00 from one customer.
  3. Reads back the status of that payment.

What you do not have to write

Fraud screening and tax calculation run on the platform side. Your code asks for the payment; the checks happen before it is authorized.

What the documentation covers.

Six sections

Getting started
Keys, test mode and the first transaction — usually done within the hour.
API reference
Every endpoint of the REST API, with its requests and responses.
SDKs
Libraries for JavaScript, Python, PHP, Ruby.
Guides
Walkthroughs for common set-ups, from a first checkout to going live.
Webhooks
Notifications sent to your system when something changes, and how to receive them.
Best practices
Keeping keys safe, handling declined payments and testing before you go live.

Stuck on a detail?

Write to us and we will answer by email within 24 hours.

Ask a question