Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@thoughtindustries/stripi
Advanced tools
Simpler Stripe API. An alternative to node-stripe where:
In other words, READ THE STRIPE API YOURSELF.
var stripe = Stripe(key, 1)
key
is your secret API key.
version
is the API version, by default 1
.
You don't need to set the version
,
but this is in case Stripe upgrades their API version in the future - no updated to this repo would be necessary.
versionDate
is an optional API version specified in the Stripe-Version
header. It is a date formated as YYYY-MM-DD.
stripe.post('/tokens', {
card: {
number: 4242424242424242,
exp_month: 12,
exp_year: 2014,
cvc: 123
}
}, function (err, card) {
assert.ifError(err)
assert.ok(card.id)
})
method
- the request methodroute
- the route after the version. Leading /
is optional. For example, for https://api.stripe.com/v1/tokens
, you only need to put in /tokens
or tokens
.request
(optional) - the request body. Should be an object or null
(GET
requests).err
- the error if the response was not a 200 status code.response
- the response body. Should be an object.Errors match Stripe's errors exactly.
err.message
err.type
err.code
err.param
err.status
- The status code, so you know whether its a 4xx
error or a 5xx
error.FAQs
Simpler Stripe API
The npm package @thoughtindustries/stripi receives a total of 391 weekly downloads. As such, @thoughtindustries/stripi popularity was classified as not popular.
We found that @thoughtindustries/stripi 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.