
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.
@spritz-finance/widget
Advanced tools
A JavaScript library for decentralised applications to onboard their global user base with fiat currency.
asdf
# Using yarn
$ yarn add @spritz-finance/widget
# Using npm
$ npm install @spritz-finance/widget
Refer here for the full list of customisation options
import spritzSDK from '@spritz/widget';
let spritz = new spritzSDK({
apiKey: '<your-api-key>', // (Required)
environment: '<environment: STAGING/PRODUCTION>', // (Required)
// .....
// For the full list of customisation options check the link above
});
spritz.init();
// To get all the events
spritz.on(spritz.ALL_EVENTS, (data) => {
console.log(data);
});
// This will trigger when the user closed the widget
spritz.on(spritz.EVENTS.spritz_WIDGET_CLOSE, (orderData) => {
spritz.close();
});
// This will trigger when the user marks payment is made
spritz.on(spritz.EVENTS.spritz_ORDER_SUCCESSFUL, (orderData) => {
console.log(orderData);
spritz.close();
});
FAQs
Spritz Finance Widget to integrate fiat offramp
We found that @spritz-finance/widget demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.