Resources
Best practices
- Initialize the SDK as early as possible. Call
init()as soon as the KYC flow is determined so the scripts are pre-loaded before the user reaches the capture step. - Keep the SDK updated. Install and update the
idpay-b2b-sdkpackage exclusively via npm or yarn — never edit installed files directly. The SDK follows Semantic Versioning, so patch and minor updates are safe to receive automatically. - Register your domains over HTTPS. All domains that embed the journey must be registered with the Unico support team and must use HTTPS.
- Never rely on
onFinishalone. It signals that the journey ended, not that the user was approved — always confirm the result withgetProcessor a Webhook notification.
Release notes
See the Release Notes for the idpay-b2b-sdk version history, new features, and upgrade notes.