Aller au contenu principal

Test Credentials

info

The real sandbox credentials live in your Lodin Console. The values in this page are placeholders for documentation purposes only — do not copy them into a config file.

Configuration

FieldValue
API endpointhttps://api-preprod.lodinpay.com/merchant-service/extensions/pay/rtp
Client IDAvailable in Console → Settings → API keys → Sandbox
Client SecretAvailable in Console → Settings → API keys → Sandbox
Test bankSelectable on the sandbox payment page — labelled "Lodin Test Bank"

Scripted test scenarios

ScenarioHow to triggerExpected outcome
Successful paymentComplete the test bank SCA normallyWebhook payment.succeeded; order → PAID
Failed paymentCancel during SCAWebhook payment.failed; order → PAYMENT_ERROR; cart restored
User abandons sessionClose the tab without completingNo webhook arrives; order stays PENDING_PAYMENT until admin cleanup
Timeout / expired linkWait > 15 minutes before authenticatingWebhook payment.failed with errorMessage = "session_expired"
Amount mismatch(Server-side test) tamper with order.amount post-creationWebhook reconciliation rejects with HTTP 500; order stays PENDING_PAYMENT
Duplicate webhookReplay the last event from the ConsoleHandler returns 200; order state unchanged (idempotent)

Local webhook testing

To receive webhooks on your laptop during development, expose your local server with a tunnel:

ngrok http 8080

Use the resulting HTTPS URL as your webhook endpoint in the Console (sandbox profile only). Cloudflare Tunnel and Tailscale Funnel work equally well if you prefer them.

Going live

When you're ready for production:

  1. Open a go-live ticket in the Console.
  2. We review your sandbox traffic to confirm webhook handling, signature verification, and idempotency are all in place.
  3. You receive production credentials and the production endpoint by email.
  4. Swap credentials in your config — never use sandbox endpoints with production credentials, or vice versa.
  5. Run a smoke test at minimum amount (0.01 €) against your real IBAN.