Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
react-coinbase-commerce
Advanced tools
A react component to easily embed a Coinbase Commerce Checkout within your application
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 393 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.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.