Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
A modern-day version of the [omise-node](https://github.com/omise/omise-node) package, allowing you to easily use the [Omise APIs](https://www.omise.co/docs) with Node.js.
A modern-day version of the omise-node package, allowing you to easily use the Omise APIs with Node.js.
The example-app shows how to use this SDK with a Next.js application.
Install from npm
yarn add omise-ts
or
npm install omise-ts
Find your secret key on your Omise dashboard, and then you can do things like:
const Omise = new OmiseClient({
apiSecretKey: YOUR_OMISE_SECRET_KEY,
})
// Create a charge for an existing customer
const charge = await Omise.charges.create({
amount: 250 * 100, // 250 baht
customer: 'cust_test_5soxme7qwp1fs0zljfx',
currency: 'THB',
})
// Add a new card and set it as the default for a customer
const customerWithNewCard = await Omise.customers.updateDefaultCard(
'cust_test_5soxme7qwp1fs0zljfx',
'tokn_test_5soxo23uixfjgi0vazn'
)
// List all customers
await Omise.customers.list()
// Delete a schedule
await Omise.schedules.destroy('schd_test_5sqh1ofvhp6k9r0kxtp')
FAQs
A modern-day version of the [omise-node](https://github.com/omise/omise-node) package, allowing you to easily use the [Omise APIs](https://www.omise.co/docs) with Node.js.
We found that omise-ts demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.