
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@transak/transak-sdk
Advanced tools
A JavaScript library for decentralised applications to onboard their global user base with fiat currency.
To use the Transak widget with your javascript application, you will need to use [@transak/transak-sdk](https://www.npmjs.com/package/@transak/transak-sdk)
(Transak’s JavaScript SDK).
Add the Transak SDK as a dependency using yarn
or npm
:
# Using yarn
$ yarn add @transak/transak-sdk
# Using npm
$ npm install @transak/transak-sdk
For the advance customization, view our query parameter documentation.
import transakSDK from '@transak/transak-sdk'
let transak = new transakSDK({
apiKey: '4fcd6904-706b-4aff-bd9d-77422813bbb7', // Your API Key (Required)
environment: 'STAGING', // STAGING/PRODUCTION (Required)
defaultCryptoCurrency: 'ETH',
walletAddress: '', // Your customer wallet address
themeColor: '000000', // App theme color in hex
email: '', // Your customer email address (Optional)
redirectURL: '',
hostURL: window.location.origin, // Required field
widgetHeight: '550px',
widgetWidth: '450px'
});
transak.init();
// To get all the events
transak.on(transak.ALL_EVENTS, (data) => {
console.log(data)
});
// This will trigger when the user closed the widget
transak.on(transak.EVENTS.TRANSAK_WIDGET_CLOSE, (orderData) => {
transak.close();
});
// This will trigger when the user marks payment is made.
transak.on(transak.EVENTS.TRANSAK_ORDER_SUCCESSFUL, (orderData) => {
console.log(orderData);
transak.close();
});
For in-depth instructions on integrating Transak, view our complete documentation.
FAQs
Transak SDK that allows you to easily integrate fiat on/off ramp
The npm package @transak/transak-sdk receives a total of 6,835 weekly downloads. As such, @transak/transak-sdk popularity was classified as popular.
We found that @transak/transak-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.