
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
gatsby-plugin-affirm-js
Advanced tools
A plugin for integrating Affirm JS payment options with Gatsby.
npm install gatsby-plugin-affirm-js
# or
yarn add gatsby-plugin-affirm-js
In the root of your Gatsby project, create 2 environment variables files (.env.development
and .env.production
) if you don't have them already, then ddd this key and value.
AFFIRM_API_KEY=YOUR_AFFIRM_API_KEY
Add the pulugin and its options to gatsby-config.js
in your project.
// 1. Import your .env files
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
plugins: [
// 2. add the plugin
{
resolve: "gatsby-plugin-affirm-js",
options: {
// 3. pass in the API key in the options
AFFIRM_API_KEY: `${process.env.AFFIRM_API_KEY}`,
},
},
],
};
You can now access the Affirm object in your React code using window.affirm
. For example
window.affirm.checkout({});
FAQs
A plugin to add Affirm JS to Gatsby
We found that gatsby-plugin-affirm-js 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
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.