Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Boost conversion by simplifying your customers’ checkout experience
customer.email
customer.id
prefill
import Ivy from '@getivy/node-sdk' const client = new Ivy() const session = await client.checkoutsession.create({ price: { total: 119, currency: 'EUR' }, referenceId: 'my-unique-reference-id', successCallbackUrl: 'https://my-website.com/success', errorCallbackUrl: 'https://my-website.com/try-again', customer: { email: 'customer@example.com' }, })
Show Or create a customer upfront and reuse the ID
import Ivy from '@getivy/node-sdk' const client = new Ivy() const customer = await client.customers.create({ email: 'customer@example.com' }) const session = await client.checkoutsession.create({ price: { total: 119, currency: 'EUR' }, referenceId: 'my-unique-reference-id', successCallbackUrl: 'https://my-website.com/success', errorCallbackUrl: 'https://my-website.com/try-again', customer: { id: customer.id }, })
Was this page helpful?