KESTRAL · Payment platform
Developer board
Documentation
One REST API, four SDKs and webhooks. A first test transaction typically goes through within the hour.
Example
A first payment
JavaScript SDK
- Step 1
Install
Add the SDK to your project. Python, PHP and Ruby follow the same pattern.
- Step 2
Authenticate
Create the client with your secret key. Use a test key until you are ready to go live.
- Step 3
Charge
Create a payment with an amount and a currency. The same call works across all 135+ currencies.
import { Kestral } from "@kestral/sdk";
// Your secret key. Keep it on the server.
const kestral = new Kestral("ks_test_7Hq2…");
const payment = await kestral.payments.create({
amount: 4900, // in minor units: 49.00
currency: "EUR",
method: "card",
description: "Order 1042",
});
console.log(payment.status);
Contents
What the docs cover
DOC 01 – DOC 06
- DOC 01
Getting started
Install an SDK, authenticate with your key and run a first test payment.
- Installation
- Authentication
- First payment
- Test mode
- DOC 02
API reference
The REST API, resource by resource: requests and responses.
- Payments
- Refunds
- Subscriptions
- Webhooks
- DOC 03
SDKs
Four libraries that wrap the API in the language you already use.
- JavaScript
- Python
- PHP
- Ruby
- DOC 04
Guides
Integration walk-throughs for each kind of business the platform serves.
- E-commerce
- SaaS
- Marketplaces
- Mobile apps
- DOC 05
Webhooks
Event notifications sent to your server as things happen.
- Setup
- Event types
- Signatures
- Testing
- DOC 06
Best practices
How to run an integration that stays secure and dependable.
- Security
- Error handling
- Performance
- Compliance
Support
Stuck on a call
Send the request you are making and the response you get back. Email support is open around the clock and replies within 24 hours.