
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
robocash-checkout-preview
Advanced tools
One-line React component for x402 crypto payment integration with Stripe-style UX
Note: This is a preview package published temporarily. The final package will be published as
robocash-checkout
under the official Robocash organization.
One-line React component for x402 crypto payment integration. Enable API monetization with crypto payments in seconds.
npm install robocash-checkout-preview
This package requires the following peer dependencies:
npm install react react-dom @rainbow-me/rainbowkit@^2.0.0 @tanstack/react-query@^5.18.0 viem@^2.7.0 wagmi@^2.5.0
import { Checkout } from 'robocash-checkout-preview';
function App() {
return (
<Checkout proxyURL="https://api.example.com/protected">
<button>Access Premium API</button>
</Checkout>
);
}
Note: CSS styles are automatically injected, no separate CSS import needed!
That's it! When users click the button, Robocash Checkout will:
Robocash Checkout works seamlessly with Next.js App Router. The package includes 'use client'
directives for all components.
// app/page.tsx
import { Checkout } from 'robocash-checkout-preview';
export default function Page() {
return (
<Checkout proxyURL="https://api.example.com/data">
<button>Access API</button>
</Checkout>
);
}
<Checkout
proxyURL="https://api.example.com/data"
method="POST"
headers={{ 'Custom-Header': 'value' }}
body={{ data: 'payload' }}
theme="dark"
onSuccess={(response) => console.log('Success!', response)}
onError={(error) => console.error('Error:', error)}
>
<button>Make API Call</button>
</Checkout>
proxyURL
(required): The API endpoint to accessmethod
: HTTP method (default: 'GET')headers
: Custom headers to includebody
: Request body for POST/PUT requeststheme
: 'light' | 'dark' | 'auto' (default: 'auto')onSuccess
: Callback when API call succeedsonError
: Callback when API call failsYour server responds with HTTP 402 and payment requirements in headers:
HTTP/1.1 402 Payment Required
X-Payment-Requirements: {"amount":"0.01","token":"USDC","recipient":"0x...","chain":1}
If your APIs are not x402 compatible, you can make a simple gateway here https://userobo.cash/gateway to instantly transform your API into a paid endpoint with no code.
MIT
FAQs
One-line React component for x402 crypto payment integration with Stripe-style UX
The npm package robocash-checkout-preview receives a total of 4 weekly downloads. As such, robocash-checkout-preview popularity was classified as not popular.
We found that robocash-checkout-preview demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.