Hosted checkout page
A hosted checkout page is the fastest way to accept a payment: Ledgerline renders, hosts and maintains the payment form, and you redirect to it.
What you can customize
Setting | Where |
|---|---|
Logo, icon and brand colour | Dashboard → Branding |
Button label ( |
|
Custom fields (up to 3) |
|
Terms of service checkbox |
|
Collect shipping addresses
const session = await ledgerline.checkout.sessions.create({
mode: 'payment',
shipping_address_collection: { allowed_countries: ['US', 'CA', 'GB'] },
line_items: [{ price: 'price_1Qx…', quantity: 1 }],
success_url: 'https://example.com/success',
});Hosted checkout automatically localises into 34 languages and shows the payment methods most likely to convert for each customer's location.
Updated
Was this page helpful?