AI Integration (Prompts for Cursor, Lovable, Bolt etc)
Before Start
Cursor Integration Guide
Quick Setup
I want to add cryptocurrency payment functionality to my existing application using MugglePay.
Please help me integrate the MugglePay API into my current [React/Next.js/Node.js] application.
Requirements:
- Accept payments in USDT, USDC
- Support multiple blockchain networks (Tron, Ethereum, Arbitrum, Base)
- Handle payment callbacks and webhooks
- Implement proper error handling and user feedback
Tech stack: [specify your preferred stack]
API Documentation:
- Create Order: https://docs.mugglepay.com/order/createorder
- Payment Callback: https://docs.mugglepay.com/order/paymentcallback
Example API call:
curl -X POST https://api.mugglepay.com/v1/orders \
-H 'Content-Type: application/json' \
-H 'token: YOUR_API_TOKEN' \
-d '{
"merchant_order_id": "order_12345",
"price_amount": 29.99,
"price_currency": "USD",
"title": "Premium Subscription",
"callback_url": "https://yoursite.com/webhooks/payment"
}'Code Examples
Direct API Integration
Basic Payment Button Component
API Route Handler
API Reference
Supported Tokens
Callbacks
Supported Features
Cryptocurrencies
Integration Options
Best Practices
Troubleshooting
Common Issues
Support
Next Steps
Last updated