
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
nuxt-stripejs
Advanced tools
NuxtJS module for Stripe.js with multi-account support
$stripe()
is called)nuxt-stripejs
dependency to your project:npm install nuxt-stripejs
nuxt-stripejs
module and configuration to nuxt.config.js
:export default {
// append the module
modules: ["nuxt-stripejs"];
// public runtime config
publicRuntimeConfig: {
stripe: {
i18n: true,
accounts: [
{
id: 'account-a',
pubKey: 'pk_test_123',
},
{
id: 'account-b',
pubKey: 'pk_test_12345',
},
],
},
}
}
nuxt-stripejs
to the types
section of tsconfig.json
:{
"compilerOptions": {
"types": ["nuxt-stripejs"]
}
}
accounts
NuxtStripeJsConfig
interface NuxtStripeJsAccount {
id: string
pubKey: string
}
interface NuxtStripeJsConfig {
i18n: boolean;
accounts: NuxtStripeJsAccount[]
}
Stripe accounts (see an example in setup)
i18n
Boolean
false
Enable i18n-module integration.
It can be used inside components like:
<template>
<div>
<div ref="stripeElements" />
</div>
</template>
{
async mounted() {
const stripe = await this.$stripe()
const elements = stripe.elements()
const card = elements.create('card')
card.mount(this.$refs.stripeElements)
}
}
Multiple stripe accounts support:
{
async mounted() {
const stripe = await this.$stripe(conditionX ? 'account-a' : 'account-b')
const elements = stripe.elements()
const card = elements.create('card')
card.mount(this.$refs.stripeElements)
}
}
Stripe: JavaScript SDK documentation & reference
See the LICENSE file for license rights and limitations (MIT).
FAQs
NuxtJS module for Stripe.js
The npm package nuxt-stripejs receives a total of 420 weekly downloads. As such, nuxt-stripejs popularity was classified as not popular.
We found that nuxt-stripejs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.