Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
react-coinbase-commerce
Advanced tools
A react component to easily embed a Coinbase Commerce Checkout within your application
Note: This repository is not actively maintained.
A button to embed a Coinbase Commerce checkout or charge directly into your React application.
npm i -S react-coinbase-commerce
import CoinbaseCommerceButton from 'react-coinbase-commerce';
import 'react-coinbase-commerce/dist/coinbase-commerce-button.css';
const App = () => {
return (
<CoinbaseCommerceButton checkoutId={'My checkout ID'}/>
)
};
CoinbaseCommerceButton
componentIn addition to the regular button
props, this component accepts some custom props:
Prop Name | default | required | type |
---|---|---|---|
styled | false | no | boolean |
checkoutId | nil | If no chargeId, yes | string |
chargeId | nil | If no checkoutId, yes | string |
onLoad | nil | no | ()=>void |
onChargeSuccess | nil | no | (MessageData)=>void |
onChargeFailure | nil | no | (MessageData)=>void |
onPaymentDetected | nil | no | (MessageData)=>void |
onModalClosed | nil | no | ()=>void |
disableCaching | false | no | boolean |
customMetadata | nil | no | string |
Warning: If disableCaching
is set to true
, users that accidentally close their payment windows will be unable to see their transaction's status upon reopening.
type MessageData = {
event: 'charge_confirmed' | 'charge_failed' 'payment_detected',
code: <CHARGE_CODE>
}
FAQs
A react component to easily embed a Coinbase Commerce Checkout within your application
The npm package react-coinbase-commerce receives a total of 624 weekly downloads. As such, react-coinbase-commerce popularity was classified as not popular.
We found that react-coinbase-commerce 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 found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.