Testing your integration
Test before you go live.
- 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. - Test with a separate API key from your production key, and with your staging domain in Allowed domains.
- Enable
debug: truein the SDK to log each step in your browser console, and callverifyApiKey()to check that the key is active. - 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.
- Test the unhappy paths: cancelled checkout, customer returns without paying, an expired session, a disputed order.
- For local development, set the SDK option
baseUrlto 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.