Product & integration

JavaScript SDK

Also called: JS SDK, web SDK, client SDK

A JavaScript SDK is a code library that opens and controls the provider's checkout from inside a web application. It wraps the widget so the product can launch it, pass parameters, and listen for events without handling the flow itself. The SDK adds event hooks the plain widget does not have: order created, order completed, widget closed. Those events let the product react in its own interface, for example by showing a balance update or closing a modal. It also handles cross-origin messaging so the host page and the checkout can talk safely.

What the product owner decides

Use the SDK when you need to know what happened without polling. Use webhooks as the source of truth for anything that changes money, because a browser event can be lost when a user closes a tab.

At Transak

Transak publishes a JavaScript SDK for web, with a mobile WebView path for native apps.

Related terms

Questions

Do I still need webhooks if I use the SDK?

Yes. SDK events tell your front end what the user saw. Webhooks tell your back end what actually settled.

Maintained by Transak. General explanations, not legal, tax or financial advice, and not an offer or inducement to buy or sell any crypto asset. Live prices and fees are always shown before you confirm.