For developers
Add payments to anything you build
Leapa’s API and widgets are the fastest way to take money inside your own product — from a weekend side project to a service billing millions of customers.
const endpoint = 'https://api.leapa.co/v2/invoices'
const response = await fetch(endpoint, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer YOUR_SECRET_KEY'
},
body: JSON.stringify({
customer_id: 'cus_8f2a1c',
description: 'Room 12, two nights',
due_date: '2026-10-01',
products: [{ product_id: 'prod_5d91e0', quantity: 2 }]
})
})
const invoice = await response.json()What you can build with Leapa
Four groups of endpoints cover the money a product moves: taking it, sending it, remembering who paid, and billing them again.
Charges and refunds
Debit a customer in several currencies, hold the funds and take them later, and refund a disputed charge.
Transfers and payouts
Move your balance to another Leapa account or out to your bank, on your own schedule.
Customers and payment methods
Create and update customer records and the cards and accounts they pay with.
Invoices and recurring payments
Generate and send an invoice once, or on a schedule, and get paid against it.
Three ways in, and you pick the one you want
Every route reaches the same payments. They differ only in how much of your own code sits in front of them.
No code
WooCommerce plugin
Search for Leapa in your WordPress plugins, activate it and paste in a key. Nothing in your theme changes.
Install the pluginOne HTML element
Payment widget
Drop one custom element into your page and a payment form appears inside it. Card numbers go straight to Leapa, never through your server.
Add the widgetFull control
REST API
Call Leapa from your own backend to charge a card, bill a customer and pay yourself out. Everything starts with a key.
Get your API keys