Core concepts
Going live
Switching to live means changing two settings: the base URL and the key. Use this checklist first so the first real order behaves like the hundredth test one.
Checklist
- Every outcome is handledYou have tested success, instant failure, pending then success, and pending then failure with the sandbox test numbers.
- Purchases send an Idempotency-KeyOne key per order, reused on retries. See Idempotency and duplicates.
- Pending orders are resolvedA 202 response is not a failure. Wait for the webhook, or poll verify, before telling your customer the result.
- Webhooks are verified and idempotentYour endpoint checks the signature, answers 2xx quickly and ignores deliveries it has already processed (use
X-Paysef-Delivery-Id). - Your account is an API Partner accountLive keys are for API Partner accounts. On any other account, generating or using a live key answers 403 API_ACCOUNT_REQUIRED. See Wholesale pricing below.
- The live key is generated and stored safelyOnly on production servers, never in client code.
- Both the base URL and the key are switchedProduction calls go to
https://api.paysef.com/api/v1with the live key. The sandbox address takes test keys only, so a live key sent there answers 403 SANDBOX_TEST_KEY_REQUIRED. Keep the base URL and key in the same configuration so they change together. - The IP allowlist is setList your production servers' egress addresses before the first live request (confirm with your PIN).
- Your live webhook URL is setSwitch Developer settings to Live mode and enter it there (confirm with your PIN). It must be a public HTTPS URL your production system receives. Private, internal and non-HTTPS addresses are refused.
- Your wallet is fundedLive purchases are paid from your real Pay Sef wallet. Fund it by bank transfer to your account number.
- You record request_idKeep meta.request_id and your own reference for every call. Support needs them to investigate.
Wholesale pricing
New accounts are charged standard prices and can only use a test key. To go live, and to buy at wholesale prices, complete KYC tier 2 (documents verified) in the app, then email support@paysef.com to move your account to the API Partner tier. Catalogue responses then show the wholesale price you will actually pay.