Get started with Ledgerline
Ledgerline is a payments platform for internet businesses. This page walks you from a fresh account to a first test charge in about ten minutes.
Not a developer? You can accept payments with no code at all using Payment Links or one of our partner plugins.
Create an account
Sign up for a Ledgerline account. Every account starts in a sandbox, an isolated copy of your account where no real money moves. You can switch to live mode when you have activated your business.
Find your API keys
Your sandbox has two keys: a publishable key (pk_test_…) that is safe to use in a browser, and a secret key (sk_test_…) that must stay on your server. See API keys.
Make your first request
- curl
- Node.js
- Python
curl https://api.ledgerline.dev/v2/customers \
-u "sk_test_51Kx…:" \
-d email="jenny.rosen@example.com" \
-d name="Jenny Rosen"const ledgerline = require('ledgerline')('sk_test_51Kx…');
const customer = await ledgerline.customers.create({
email: 'jenny.rosen@example.com',
name: 'Jenny Rosen',
});import ledgerline
ledgerline.api_key = "sk_test_51Kx…"
customer = ledgerline.Customer.create(
email="jenny.rosen@example.com",
name="Jenny Rosen",
)The response is the new customer object:
{
"id": "cus_Qm8xT2vLp0aZ",
"object": "customer",
"email": "jenny.rosen@example.com",
"name": "Jenny Rosen",
"created": 1791787234,
"livemode": false
}Next steps
Updated
Was this page helpful?