Developers

Integrate payments from your server

The API is available on every plan. Configure your Redsys terminal and notifications in Settings first.

Create a checkout session

Keep your API key on your server. Amounts use EUR cents; 2500 means €25. The API returns url and sessionId.

curl https://api.andpay.io/api/checkout/sessions \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount":2500,"currency":"EUR","description":"Order 123"}'

Open the returned URL on your website so the customer can complete payment. Check status from your server; a browser redirect does not prove payment.

API documentation

CMS plugins and dedicated SDKs are not available yet.