Skip to main content

Environment

API environment configuration for production use.

Paysera Checkout API configuration for production use.

Base URL​

All API requests use the production base URL:

https://api.paysera.com

API Endpoints​

Authentication​

EndpointURL
Tokenhttps://api.paysera.com/auth/realms/Paysera/protocol/openid-connect/token

Orders​

EndpointURL
Create Orderhttps://api.paysera.com/merchant-order/integration/v1/orders
Get Orderhttps://api.paysera.com/merchant-order/integration/v1/orders/{id}
EndpointURL
Create Linkhttps://api.paysera.com/checkout-payment-link/integration/v1/payment-links

Payment Methods​

EndpointURL
Get Methodshttps://api.paysera.com/checkout-project/integration/v1/methods

Configuration Examples​

Environment Variables​

Store configuration in environment variables:

# .env
PAYSERA_CLIENT_ID=your-client-id
PAYSERA_CLIENT_SECRET=your-client-secret
PAYSERA_PROJECT_ID=your-project-id
PAYSERA_API_URL=https://api.paysera.com

PHP Configuration​

<?php

class PayseraConfig
{
private const BASE_URL = 'https://api.paysera.com';

public static function getBaseUrl(): string
{
return self::BASE_URL;
}

public static function getTokenUrl(): string
{
return self::BASE_URL . '/auth/realms/Paysera/protocol/openid-connect/token';
}
}

Webhook Configuration​

Configure your webhook URL for receiving payment notifications:

<?php

$webhookUrl = 'https://your-site.com/webhooks/paysera';

Testing Webhooks Locally​

For local development, use tunneling tools to expose your local server:

Example with ngrok:

# Start ngrok
ngrok http 8000

# Use the ngrok URL as your callback URL
# https://abc123.ngrok.io/webhooks/paysera

Rate Limits​

All integration API endpoints are rate limited to 50 requests per minute per client IP address.

When the limit is exceeded, the API returns HTTP 429 Too Many Requests. Every response includes rate limit headers:

HeaderDescription
X-RateLimit-LimitTotal requests allowed in the current time window
X-RateLimit-RemainingRequests remaining in the current time window
X-RateLimit-ResetSeconds until the rate limit window resets