Most people who download a wallet open it to an empty balance. To fund it, they sign up to an exchange, buy crypto, copy an address, pick the right network and send. Every step is a chance to quit, and many do.
A crypto payment SDK removes those steps. The user taps Buy, pays with a card or bank transfer, and the crypto lands in their own address a few screens later.
This guide covers what a crypto payment SDK does, how to integrate one into a wallet step by step, and the mistakes that most often break integrations in production.
What is a crypto payment SDK?
A crypto payment SDK is a ready-made code package that lets a wallet app accept fiat payments and turn them into crypto, or turn crypto back into fiat.
The provider collects the payment, verifies the user's identity, screens for fraud, converts the funds and sends crypto to the user's wallet address. The wallet opens the SDK and listens for the result.
Your wallet still manages its own addresses, keys, signing and recovery. A payment SDK adds funding and cashout capabilities to that wallet.
An API and an SDK are related but not the same.
An API is a set of endpoints your servers call. An SDK wraps those endpoints in ready-to-use components for a platform such as web, iOS, Android or React Native, so you write far less code. Transak offers both, and your app can use a bit of each.
In Transak’s case, the JavaScript SDK launches and manages the Transak interface inside your web project. Your users buy and sell crypto directly inside your app while we take care of KYC, regulation and compliance, fiat payment methods and asset coverage.
- Transak offers an On Ramp (buy crypto with fiat) and an Off Ramp (sell crypto for fiat).
- A partner account in the Transak Partner Dashboard gives immediate access to the order dashboard and a staging API key.
- Transak requires partners to submit a KYB form before they get a production API key.
- The JavaScript SDK is installed from npm as @transak/ui-js-sdk.
- For mobile apps, Transak documents Android, iOS and React Native integrations.
Know what the SDK does and what the backend does
The SDK opens and manages the Transak interface in your app. Your backend creates a widget URL through the Create Widget URL API, and the app passes that URL to the SDK.
Listen to the SDK events
The SDK sends events to your app, for example when the widget closes, when an order is created and when the user marks the payment as made.
Create a partner account and get your keys
Sign up in the Partner Dashboard with a corporate e-mail address to get a staging API key. Submit the KYB form so Transak’s compliance team can review your application, because KYB is required for the production API key. Use the same e-mail address for both.
What a payment SDK handles for your wallet
| User action | What the user does | What the provider handles |
|---|---|---|
| Buy crypto (on-ramp) | Picks a token and amount, pays by card, bank transfer, Apple Pay or Google Pay | Payment processing, KYC, fraud and sanctions checks, delivery to the wallet address |
| Sell crypto (off-ramp) | Picks a token and a payout account | Receiving the crypto, conversion, payout to a bank account or card |
| Track an order | Sees the order status inside the wallet | Status updates sent to your app and your servers |
What are the main integration options for crypto payments?
Pick an integration type before writing code. There are three ways to add a payment SDK to a wallet. They differ in who owns the screens and how much you build.
| Option | Who owns the screens | Build effort | Best for |
|---|---|---|---|
| Redirect | The provider, on a hosted page | Lowest | Testing demand, web-only products |
| Embedded SDK (web, Android, iOS, React Native) | The provider, inside your app | Low | Most wallets |
| Whitelabel API | You | Highest | Teams that want a fully native checkout |
Tthe embedded SDK goes live quickly, covers both buying and selling, and shows you exactly where users drop off. Move to the whitelabel API once you have that data and a clear reason to build your own screens.
One detail matters here. On Transak, selling crypto runs through the widget, and the whitelabel API covers buying only. If your wallet needs both flows from day one, the embedded SDK is the simpler path. For a deeper comparison, read Whitelabel API vs Widget.
How to integrate a crypto payment SDK
The pattern is similar across providers. The steps below follow Transak's current flow, where your backend creates each session and the app only displays it
1. Set up staging and production access
Create a Transak Partner Dashboard account to obtain staging credentials. Production access requires business verification, also called Know Your Business or KYB. Submit that while development is underway. Documentation
Keep staging and production credentials separate. Your backend should hold the API secret and Partner Access Token. The mobile app or browser should receive only the information needed to open the payment flow.
2. Bind the purchase to the correct wallet and network
Take the receiving address from the wallet account the user selected. Validate it against the intended blockchain before creating the payment session. An address passing a format check does not establish that you chose the right network.
For a purchase intended to fund the active wallet account, these Transak parameters are useful:
| Parameter | Purpose |
|---|---|
| walletAddress | Supplies the receiving address |
| disableWalletAddressForm | Prevents address edits when set to true |
| cryptoCurrencyCode | Fixes the selected crypto asset |
| network | Restricts the flow to a single network |
| partnerOrderId | Connects the provider order to your internal purchase reference |
Pass these values inside widgetParams when your backend creates the session. A walletAddress is editable by default, while defaultNetwork is only a starting selection. Use the appropriate restrictions when the purchase must fund a particular account and chain.
Show the selected asset, network and shortened address before opening the flow. If the user switches accounts before starting a purchase, rebuild the configuration. Keep existing orders associated with their original destination.
3. Create a secure widget session on your backend
The current Transak integration uses a backend-generated widgetUrl. The older approach of placing all configuration directly in a widget URL is no longer supported. Obtain a Partner Access Token through the Refresh Access Token endpoint, then reuse it until renewal is needed.
Your backend calls Create Widget URL, using POST /api/v2/auth/session. Include apiKey, your approved referrerDomain and the purchase configuration inside widgetParams. The response contains data.widgetUrl. Pass that value to your frontend. Each URL expires five minutes after creation and is single-use, so generate it when the user starts a new flow.
Send the Partner Access Token in access-token, your API key in x-api-key, and the originating user’s IP in x-user-ip. Transak also requires backend IP allowlisting. Restrict browser access to your own integration endpoints to approved frontend origins, and obtain the user’s IP through trusted server or proxy configuration.
Protect session creation with authentication, input validation and rate limits. CORS restrictions control browser access; they do not replace authentication. Avoid logging tokens, full session URLs or unnecessary personal data.
Create sessions on demand. Reopening a purchase flow requires a fresh session, but should not automatically create a duplicate purchase when an existing order is still pending.
4. Open the payment interface with the SDK
Install the JavaScript SDK:
npm install @transak/ui-js-sdk
The following browser-side example requests a session from your own backend and opens the returned URL:
import { Transak } from '@transak/ui-js-sdk';
export async function openWalletFunding() {
const response = await fetch('/api/transak/widget-session', {
method: 'POST'
});
if (!response.ok) {
throw new Error('Unable to start the purchase. Please try again.');
}
const { widgetUrl } = await response.json();
const transak = new Transak({ widgetUrl });
transak.init();
return transak;
}
/api/transak/widget-session is an illustrative endpoint in your application. You must implement it to authenticate the request, validate the selected wallet and purchase details, call Transak with the required headers, and return { widgetUrl }.
Connect the function to your wallet’s Buy action. Handle errors visibly, prevent repeated clicks from opening multiple widgets, and close the SDK instance when the relevant screen unmounts. Add the documented event listeners for your interface and analytics.
5. Plan the verification experience
If your wallet already verifies users, assess whether KYC Reliance is suitable. Transak supports sharing existing verification through supported partners and API arrangements.
Prefilling a name or email is different from reusing a completed verification. Confirm the supported flow before promising users that they will not need additional checks.
6. Confirm completion through your backend
Use SDK events to manage the interface. Use verified order information to determine the transaction’s actual status.
TRANSAK_ORDER_SUCCESSFUL is an event where the user marks payment as made and the interface can close. It should not be treated as independent proof that crypto has arrived.
For an on-ramp order, the ORDER_COMPLETED webhook with status COMPLETED means payment has been received and crypto has been sent successfully.
Your webhook endpoint should verify the signed JWT in the data field using the Partner Access Token before trusting the payload. Simply decoding the token is insufficient.
Store the verified order against the correct user and internal purchase reference. Design processing so repeated notifications do not trigger duplicate actions. Do not let an older update overwrite a newer confirmed state.
Refresh the wallet’s actual balance using its normal blockchain data source. A completed provider order and the wallet’s displayed, spendable balance are related pieces of information that your application must reconcile.
Common integration mistakes and how to fix them
| Mistake | What goes wrong | Fix |
|---|---|---|
| Copying an older tutorial that builds the widget URL with query parameters | The integration is rejected, because that method is deprecated | Create sessions through the Create Widget URL API |
| Treating TRANSAK_ORDER_CREATED as paid | Users see success before they have paid | Wait for TRANSAK_ORDER_SUCCESSFUL on screen and a COMPLETED webhook for records |
| Reusing a widget URL | The checkout fails to open | Create a new session for every flow |
| Updating history from screen events only | Orders go missing when users close the app | Update records from verified webhooks |
| Letting users type their own address and network | Funds get sent on the wrong network | Pre-fill both from the wallet's active account and validate the address |
| Testing only the happy path | Support tickets on launch day | Test declines, KYC rejections and refunds in staging |
Mobile wallet integration needs device testing
Test the entire payment journey on the devices you support. Identity checks may need camera permissions, and payment authentication can move the user into another app or browser context.
Transak provides an official React Native SDK, @transak/ui-react-native-sdk, with Expo and non-Expo implementations.
- Google Pay: Transak documents mobile support through its React Native SDK. Native Android and iOS WebView integrations do not support it.
- WebView detection: Keep the native WebView’s default user agent. Transak uses it to determine compatible payment methods.
Verify camera permission prompts, identity capture, card or bank authentication, return links and recovery after the app goes into the background. When users return, retrieve their order status instead of assuming the flow failed because its screen disappeared.
How does KYC impact integration time?
KYC (Know Your Customer) is part of every buy or sell flow, so it affects what you build and test. With Transak’s widget, users complete KYC inside the widget with Transak’s KYC provider. With the Whitelabel API you can build the journey yourself or reuse verification you already have.
Understand Transak’s KYC levels
Transak uses a multi-level KYC structure:
- Lite
- Standard
- Enhanced
The level depends on factors such as the user’s KYC country, transaction limits, the payment method and fiat currency, and an internal risk engine that can prompt Standard KYC.
Note that some countries are not eligible for Lite KYC.
Decide who builds the KYC screens
If you do not want to build custom screens against the KYC APIs, Transak’s Headless KYC embeds a multi-step KYC flow in your own interface.
Reuse KYC you already have
KYC Reliance lets partners reuse a user’s existing verification so the user does not verify again with Transak. We support two approaches:
- submitting partner-completed KYC data through its API,
- or sharing existing Sumsub KYC data with a share token.
What support do wallet developers need during integration?
Developers need clear documentation, a place to ask technical questions and a way to reach the provider when something is blocked. Transak’s documentation points to several channels.
Start with the documentation
Transak’s documentation has pages for each integration option, features such as webhooks and WebSockets, customization with query parameters, and guides for sandbox testing, KYC levels and order tracking. It also has a page on connecting an AI coding assistant to the documentation through an MCP server.
Use the support channels
Transak offers a support chat for submitting tickets and a Partner Support Hub with FAQs, common issues and tickets. The support staff is available 24/7.
Ask for integration help
Partners in Transak’s Telegram or Slack can contact the team there. Otherwise, use the chatbot in the Partner Dashboard and choose Integration. This integration support is available only for KYB-approved and verified partners and covers integration questions only.
What are the benefits of using an SDK over other integration methods?
An SDK saves interface work compared with a fully custom build. The trade-off is less control over the screens. Which side wins depends on your wallet.
Reuse a ready interface
With the JavaScript SDK or the React Native SDK you launch Transak’s interface instead of building the buy and sell screens yourself. With the Whitelabel API you build the user interface and the user journey yourself, from authentication and KYC to order creation and tracking.
Get events and callbacks
The JavaScript SDK offers event listeners, and our React Native SDK has built-in callbacks and event support. Your app can react when the widget closes or when an order is created or successful.
Use Transak-hosted payment and KYC steps
With the widget-based options, KYC, payment methods and compliance run inside Transak’s flow. Headless options for Apple Pay, Google Pay and cards are available, which let you embed those payment methods in your own interface without routing users through the widget.
FAQs
How long does crypto payment SDK integration take?
An embedded SDK can run in staging within hours. It needs one backend endpoint that creates sessions and a few lines of frontend code. Going live takes longer, because the provider must approve your business (KYB), you register webhooks, and you submit the partner checklist.
Do I need my own licence or KYC to add a payment SDK?
Usually not. The provider is the regulated party that processes payments and verifies users. Your wallet passes users into the flow and stays non-custodial. If you add your own fees or hold user funds, check the rules in your markets with legal counsel.
Should a wallet use an SDK or an API?
Use an SDK if you want to launch fast and support both buying and selling. Use a whitelabel API if you want the checkout to look fully native and you have the engineering time to build and maintain the screens. Many teams start with the SDK and move later.
Can users sell crypto through the same SDK?
Yes. Our widget supports both buying (on-ramp) and selling (off-ramp) in one integration. The whitelabel API currently supports buying only, so selling still runs through the widget.
Which platforms does a crypto payment SDK support?
Transak supports web through a JavaScript SDK, an iframe or a redirect, plus native SDKs for Android, iOS and React Native. Flutter webview integrations are no longer supported.
Does the SDK hold users' funds?
No. Crypto goes directly to the wallet address passed in the session. Your wallet never takes custody of the user's crypto.




