Integration checklist
Before you begin acceptance testing or move to production, use this checklist to verify you’ve successfully completed your Trustly integration.
User experience (UX)
- Cancel flow: If a user clicks ‘Cancel’ in the Trustly Lightbox, ensure your application returns them to your checkout selection page, not an error page.
- Error messages: If Trustly declines a transaction, display a friendly message asking the user to try again or choose a different bank, rather than a generic ‘System Error’.
- Mobile responsiveness: Test the integration on a mobile device to ensure the Trustly Lightbox does not overlap with your site navigation bars or headers.
Security and compliance
See Generate request signatures
- Request signatures: Ensure your backend generates a unique
requestSignaturefor everyEstablishcall. Never hardcode signatures or generate them on the client side. - Webhook validation: Verify your webhook listener validates the signature in the header of every incoming notification to prevent spoofing.
- PII handling: Pass Personally Identifiable Information (Names, Emails) only in the
customerobject. Never pass PII in thedescriptionfield. - Script source: Load the Trustly SDK directly from
trustly.one. Do not host the script file on your own servers.
Payment logic and data
- Establish Data parameters: Ensure your
establishDatapayload includes all requiredcustomerandmetadatafields before initiating a transaction. - Transaction IDs: Ensure your database stores the Trustly
transactionIdreturned in the redirect URL and webhook. You need this ID for all future refunds or support requests. - Async fulfillment: Verify your system fulfills orders based on the
COMPLETEDwebhook event, not just the user redirect to the success page. - Split tokens (Trustly Pay): If using Trustly Pay, capture and store the
splitTokento enable one-click payments for returning users. - Duplicate handling: Ensure your webhook listener handles duplicate events idempotently. For example, if Trustly sends the same
Successwebhook twice, do not duplicate the payment.
Next steps
After validating your Trustly integration, complete the following tasks:
- Test your integration → Validate your error handling and success paths in the Sandbox.
- Schedule certification Contact your assigned Trustly integration manager to complete a formal review of your integration.
- Go-live checklist → Prepare your environment for production.