Secure Your Integration
Bot and fraud protectionโ
ZenPay provides its own security measures, but you should also protect your own site. The most effective deterrent against automated attacks is an invisible challenge-response system such as Cloudflare Turnstile or Google reCAPTCHA v3. Require a valid token from these services before calling $.zpPayment(...) so only legitimate users can trigger a transaction.
CSRF protectionโ
Accompany every payment initiation request with a unique, cryptographically strong CSRF token generated by your server. Never trust client-side data alone. Validate transaction details on your backend before handing them to the HPP. Combine this with a strict Content Security Policy (CSP) that restricts which domains can execute scripts on your page.