
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
bc-stripe-sdk
Advanced tools
BetterCommerce's Stripe NodeJS SDK enables BC client applications to integrate with Stripe merchant API system.
BetterCommerce's Stripe NodeJS SDK enables BC client applications to integrate with Stripe merchant API system.
Use below command for package installation:
npm install @better-commerce/bc-stripe-sdk
Use following snippet to initialize the SDK:
StripeEnvironment.init("<public_key>", "<secret_key>");
const data = {
amount: <amount>,
currency: "<currency_code>",
receipt_email: "<receipt_email>",
description: "<description>"
};
const result = await new Payment.initIntent(data);
{
"id":"pi_3NFEwJJfqoPrHJKR0flGB6qG",
"object":"payment_intent",
"amount":10101,
"amount_capturable":0,
"amount_details":{
"tip":{
}
},
"amount_received":0,
"capture_method":"automatic",
"confirmation_method":"automatic",
"created":1685877459,
"currency":"gbp",
"customer":null,
"description":"",
"invoice":null,
"metadata":{
},
"payment_method_options":{
"card":{
"installments":null,
"mandate_options":null,
"network":null,
"request_three_d_secure":"automatic"
}
},
"payment_method_types":[
"card"
],
"receipt_email":"test@gmail.com",
...
...
...
}
const result = await new Payment.getDetails("pi_3NFWWaJfqoPrHJKR02VlCGgh");
{
"id":"pi_3NFWWaJfqoPrHJKR02VlCGgh",
"object":"payment_intent",
"amount":11100,
"amount_capturable":0,
"amount_details":{
"tip":{
}
},
"amount_received":11100,
"application":null,
"application_fee_amount":null,
"automatic_payment_methods":null,
"canceled_at":null,
"cancellation_reason":null,
"capture_method":"automatic",
"client_secret":"pi_3NFWWaJfqoPrHJKR02VlCGgh_secret_L5km8kntCOLxJb5uicbXNZLLj",
"confirmation_method":"automatic",
"created":1685945056,
"currency":"gbp",
"customer":null,
"description":"Order 7effe5bc-6603-ee11-b1c2-000d3a211cf7 for basket null",
"invoice":null,
"last_payment_error":null,
"latest_charge":"ch_3NFWWaJfqoPrHJKR0f6NEzpD",
"livemode":false,
"metadata":{
},
"next_action":null,
"on_behalf_of":null,
"payment_method":"pm_1NFWWtJfqoPrHJKRuodOgi5m",
"payment_method_options":{
"card":{
"installments":null,
"mandate_options":null,
"network":null,
"request_three_d_secure":"automatic"
}
},
"payment_method_types":[
"card"
],
"processing":null,
"receipt_email":"test@gmail.com",
...
...
...
}
FAQs
BetterCommerce's Stripe NodeJS SDK enables BC client applications to integrate with Stripe merchant API system.
The npm package bc-stripe-sdk receives a total of 20 weekly downloads. As such, bc-stripe-sdk popularity was classified as not popular.
We found that bc-stripe-sdk 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.