Sets up NowPayments cryptocurrency payment processing for AI-operated stores:
Tell your AI: "Set up NowPayments for my store."
Your AI will:
Create .env with NOWPAYMENTS_API_KEY and NOWPAYMENTS_IPN_SECRET
Create /api/checkout endpoint with:
Create /api/payment-callback for IPN webhooks
Wire the checkout button to call the API
Add payment status polling to the success page
javascript
const PRODUCTS = {
blueprint: { name: "Product Name", price: 29, desc: "Description" },
kit: { name: "Product Name", price: 97, desc: "Description" },
// Add more products as needed
}
bash
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)1.0 by TalonForge