accepting-payments

Adds x402 micropayment verification and subscription management to Tailwind CSS classes.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/0xHoneyJar/construct-beacon --skill accepting-payments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: accepting-payments
Source: https://github.com/0xHoneyJar/construct-beacon/tree/main/skills/accepting-payments
Command: npx skills add https://github.com/0xHoneyJar/construct-beacon --skill accepting-payments

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @0xhoneyjar/beacon-schema, typescript, fetch, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows developers to turn any Next.js API route into a paid, monetized endpoint using the x402 protocol, simplifying secure micropayments.

Core Features & Use Cases

  • Payment Middleware Generation: Creates middleware that verifies payments and enforces access control.
  • Rate Limiting Integration: Implements per-agent and per-IP rate limits to prevent abuse.
  • Lifecycle Hooks: Adds hooks for tracking payment requests, verifications, and settlements, enabling auditing and analytics.
    Use case: A developer wants to monetize their API by requiring a small payment for each request while tracking active users and preventing excessive use.

Quick Start

Request a paid API endpoint by adding the /beacon-pay trigger to your route handlers to automatically generate the necessary middleware and hooks.

Frequently Asked Questions about accepting-payments

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I monetize Next.js API routes with micropayments?

You can monetize Next.js API routes with micropayments by adding the `/beacon-pay` trigger to route handlers to generate payment verification middleware. This enforces access control and requires secure payments for each request using the x402 protocol.

Can I add rate limiting to paid API endpoints to prevent abuse?

Yes, you can add rate limiting to paid API endpoints to prevent abuse. The Skill implements per-agent and per-IP rate limits alongside payment verification middleware, ensuring users cannot excessively request your monetized Next.js routes.

Does this x402 payment middleware work with TypeScript projects?

Yes, the x402 payment middleware works with TypeScript projects. The Skill explicitly depends on `typescript` and `@0xhoneyjar/beacon-schema` to provide typed code templates for integrating payment verification into your Next.js API routes.

How do I track API payment verifications and settlements for auditing?

You can track API payment verifications and settlements for auditing by using the Skill's lifecycle hooks. These hooks monitor payment requests and final settlements, enabling analytics and auditing for your x402 monetized endpoints.

What is the best way to set up access control for blockchain API services?

The best way to set up access control for blockchain or token-based API services is using the x402 protocol. It allows you to require secure micropayments for access, verifying each transaction before your Next.js API route processes the request.

When do I need the x402 protocol for my API?

You need the x402 protocol for your API when you want to monetize endpoints by requiring small, secure micropayments for each request. It is suitable for blockchain or token-based services that need strict access control and rate limiting.