NowPayments Integration
Integrates NowPayments API to enable secure multi-cryptocurrency payments, IPN handling, and order tracking in AI-operated stores.
NowPayments Integration Skill
Accept crypto payments in your AI agent's store
What It Does
Sets up NowPayments cryptocurrency payment processing for AI-operated stores:
- Payment API integration
- IPN callback handling
- Multi-currency support (200+ coins)
- Auto-payment verification
- Order status tracking
Prerequisites
- NowPayments account (free at nowpayments.io)
- API key from NowPayments dashboard
- IPN secret from Store Settings → IPN
Setup Instructions
Tell your AI: "Set up NowPayments for my store."
Your AI will:
- Create
.envwith NOWPAYMENTS_API_KEY and NOWPAYMENTS_IPN_SECRET - Create
/api/checkoutendpoint with:- Product validation
- Payment creation
- Rate limiting (10 req/min per IP)
- CSRF protection
- Create
/api/payment-callbackfor IPN webhooks - Wire the checkout button to call the API
- Add payment status polling to the success page
Products Configuration
const PRODUCTS = {
blueprint: { name: "Product Name", price: 29, desc: "Description" },
kit: { name: "Product Name", price: 97, desc: "Description" },
// Add more products as needed
}
Security Features
- Origin header validation (CSRF defense)
- Content-Type enforcement
- Rate limiting per IP
- No API key in client-side code
- IPN signature verification
Testing
curl -X POST http://localhost:3000/api/checkout \
-H "Content-Type: application/json" \
-d '{"productId": "blueprint"}'
Response includes:
payment_id— NowPayments IDpay_address— Crypto wallet addresspay_amount— Amount in cryptopay_currency— Currency (default: usdterc20)
Version
1.0 by TalonForge
Links
- Store example: https://www.talonforge.xyz/store
- NowPayments docs: https://documenter.getpostman.com/view/7900902/S1a7UnNT
Related skills
- Downloads
- 754All time
- Security audit
- Review
- Last updated
- 6mo ago
- Current version
- v1.0.0
- License
- MIT-0
