Back to Knowledge Base

Testing your integration

Test before you go live.

  1. Use a test page. RahaKaitse has a demo shop (/test-ecommerce) that shows a cart, the checkout flow with redirect and modal modes, and the code behind it. Use it to see the full flow and compare it with your own implementation.
  2. Test with a separate API key from your production key, and with your staging domain in Allowed domains.
  3. Enable debug: true in the SDK to log each step in your browser console, and call verifyApiKey() to check that the key is active.
  4. Run a small real payment (for example 1–2 USDC) end to end: create the session, pay, return to your thank-you page, confirm delivery, and check that the money arrives in your wallet.
  5. Test the unhappy paths: cancelled checkout, customer returns without paying, an expired session, a disputed order.
  6. For local development, set the SDK option baseUrl to your local server address.

Before launch, check: key kept on the server where possible, allowed domains set, return URL correct, order matching by orderRef, and the contact e-mail in the portal is monitored. If anything fails, contact support@rahakaitse.ee with the session ID.

Related articles: Partners & Business