API keys
Open Dashboard > Developer Tools > API Keys (/dashboard/developers/api-keys). If no key exists, click Generate and immediately save its full value. Otherwise use the original you securely saved. Full keys are shown only when generated; a masked value cannot configure your application. Privately put it in the server-side KYREN_API_KEY setting or its application-specific equivalent, not in an Agent chat.
Use API keys only from your server. Do not expose them in frontend JavaScript, mobile apps, logs, screenshots, or public repositories.
If you regenerate an API key, update every server environment that calls KyrenPay. The previous key stops working after regeneration.
Webhooks
Configure a Webhook URL that KyrenPay can reach over HTTPS. Your server should verify the Webhook signature before trusting the event body. Open Dashboard > Developer Tools > Webhooks (/dashboard/developers/webhooks), enter your application’s actual public HTTPS callback URL and save. First configuration generates a separate Webhook Secret. Copy its full value into the private server-side KYREN_WEBHOOK_SECRET setting. If no Secret exists, click Generate; otherwise use your securely saved original. It is not the API key, and its masked display cannot verify signatures. Regeneration immediately invalidates the old Secret and requires updating the relevant servers. Do not overwrite another application’s callback URL just to set up a new application.
Kyren cannot send notifications to localhost. Use your HTTPS deployment or an authorized tunnel’s current URL, with the callback path implemented by your application. Configure it before the first payment; later configuration does not automatically backfill ordinary past payment notifications.
Product ID and application settings
For application integration, prefer setup code or an Agent that queries/reuses or, within authorization, createsACTIVE one-time products through the Products API. Persist each local SKU-to-Kyren-product-ID mapping in the database or existing durable catalog, scoped to the environment and merchant. Lists use data.items and data.pagination; creation returns data.id. Repeated initialization reuses mappings. Check price and currency, but do not identify products by price alone; ask the user to resolve ambiguity and do not create a new product per purchase.
Manual creation, selection and copying Product ID in Dashboard > Product Management (/dashboard/products) remain available for manual setup. KYREN_PRODUCT_ID is an optional shortcut for a simple single-product application, not a general integration prerequisite. A product ID is not a secret, merchant PID, Checkout ID or order ID; users need not obtain it manually as a third credential.
These variable names are examples; follow your application’s implementation. Reload or restart according to its instructions after updating the actual server configuration. Obtain all values from the selected environment’s dashboard; do not mix a development integration with production settings or credentials. See Quickstart for the walkthrough.
