Symptom
Creating a Checkout Session returns an error or no hosted checkout URL is created.Likely causes
- The
product_iddoes not exist or belongs to another merchant. - The product is archived and can no longer be used for new sessions.
- Hosted Checkout is disabled for the merchant, or applicable merchant agreement restrictions remain unresolved.
- The product amount exceeds per-order limits; payment also needs an enabled channel supporting its currency.
- Required
successUrl(also accepted assuccess_url) is missing or invalid.cancelUrl/cancel_urlis optional; omitting it does not fail creation. - Authentication failed before the checkout request was processed.
Check this in KyrenPay
- Confirm the product is active in Dashboard > Products.
- Check the product price and currency in the dashboard.
- Confirm your checkout settings use valid return URLs.
- Review Developer settings if the API response indicates authentication failure.
Check this in your server
- Create Checkout with
productIdandsuccessUrl, without amount, quantity or currency overrides; the Session uses its product’s price and currency. - When creating or updating a product, send
priceas a decimal string such as"9.99"and use an allowed three-letter currency code. successUrlis required and acceptshttp://orhttps://; use absolute HTTPS URLs in production. If supplied, use a valid site URL forcancelUrltoo.- If an API IP whitelist is configured, check your server’s outbound IP. Read
data.idanddata.url, not top-level fields. - Log the request body and KyrenPay response status, excluding secrets.
Fix
Use your merchant’s active product, the required success URL and a validx-api-key. Confirm hosted Checkout access, enabled channels, amount limits and applicable agreement status. Correct price and currency issues in the product configuration.
