Skip to main content
Complete code examples for common KyrenPay API operations in multiple languages.

Create a Product

Create a Checkout Session

These are server-side request examples. Populate metadata with your authenticated user and server-generated business order ID; product metadata is not copied automatically. Session creation cannot override product amount, currency or quantity. Read Axios response.data.data or the JSON response’s data, and durably associate its Session ID, URL, amount, currency and expiry with your business order before returning the URL to the browser. See the full example for concurrent purchases, uncertain creation outcomes, durable fulfillment and reconciliation. Never run API-key examples in a browser.

List Orders

Get Account Balance

Verify Webhook Signature

See the Webhook Signatures page for complete verification examples in Node.js, Python, and Go.