- Home
- Skills
- APIs & Backend
- Get Paid Anywhere
More screenshots
Works with the AI Agents you already use
Get Paid Anywhere
Add payments where Stripe isn't available: Paystack, M-Pesa, Paymob, CMI, Razorpay and more, with verified webhooks.
$12
Get Paid Anywhere
Example session with this skill installed
Stripe isn't available in Kenya. Add M-Pesa payments to my Express shop: customers pay from their phone and the order is marked paid automatically.
- Read your context and instructions
- Compiled the get paid anywhere
Summary
Picked M-Pesa Daraja (STK Push) for a Kenyan seller selling locally, with Paystack/Flutterwave as card + mobile-money alternatives. Added checkout, callback and order states to the Express app.
Provider check
$ python scripts/pick_provider.py --seller KE --customers KE --methods mobile_money
✓ Paystack: apple_pay, bank_transfer, card, mobile_money, ussd
✓ Flutterwave: bank_transfer, card, mobile_money, ussd
✓ M-Pesa Daraja (Safaricom): mobile_money
Files added
- payments.js: order store, state machine (pending → paid/failed), idempotent applyPayment, amount + currency check
- providers.js: mpesa.start() (STK Push, Nairobi timestamp, base64 password) and mpesa.query() to confirm results
- server.js: POST /api/checkout (server-side prices), secret callback route, GET /api/orders/:ref
Security
M-Pesa callbacks are unsigned, so every callback is confirmed with the STK Push Query API before the order is marked paid. Duplicate callbacks are ignored.
Tests
$ node test-webhooks.js
20 passed, 0 failed (valid, tampered, duplicate and underpaid webhooks across 11 providers)
Next step
Create a Daraja sandbox app, set MPESA_CONSUMER_KEY, MPESA_CONSUMER_SECRET, MPESA_PASSKEY, MPESA_SHORTCODE=174379, then expose localhost with cloudflared to receive the sandbox callback.
Connects securely to your tools. The creator never sees your data.
About this skill
Stripe's limited global footprint leaves developers in emerging markets without a reliable way to accept payments. This skill bridges that gap by implementing local payment gateways and merchants of record tailored to the seller's specific region. It replaces generic advice with production-ready integration code for regions where Stripe is unavailable, including Africa, Latin America, and Southeast Asia.
What it does
- Provider selection identifies the optimal gateway based on the seller's country, customer base, and product type.
- Multi-gateway scaffolding generates integration code for Paystack, Flutterwave, M-Pesa, Paymob, CMI, Razorpay, Mercado Pago, Xendit, and others.
- Secure webhook handling implements signature verification using raw request bodies and constant-time comparisons.
- Idempotency logic manages order states to prevent duplicate fulfillment from retried webhook events.
- Compliance checking provides a pre-flight list of KYC documents and legal requirements needed for gateway approval.
How it works
- Define the context by specifying the seller's location, target markets, and whether they are selling digital or physical goods.
- Select the adapter from the provider library to generate the
payments.jsstate machine andproviders.jsintegration. - Verify the flow using the
test-webhooks.jsutility to simulate tampered, duplicate, and underpaid transactions. - Deploy and audit using the go-live checklist to ensure production keys, environment variables, and refund workflows are active.
Frameworks & tools
Supported stacks include Node.js (Express, Next.js, Fastify), Laravel, and Django. Logic is ported to specific languages following strict idempotency and minor-unit currency standards.
Why this beats prompting it yourself
Generic prompts often produce insecure code that trusts client-side prices or ignores webhook signature verification. This skill enforces non-negotiable security patterns, such as server-side price truth and idempotent event processing, which are critical for financial reliability.
Use cases
- Accepting M-Pesa mobile money for a service business in Kenya.
- Selling SaaS internationally from Morocco using a merchant of record like Lemon Squeezy.
- Integrating Razorpay for UPI and card payments for an Indian e-commerce site.
- Scaling a Nigerian startup using Paystack while ensuring secure webhook fulfillment.
Known limitations
Does not guarantee account approval from providers. Requires manual business registration for most local gateways. Limited to the 11 supported providers in the reference library.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
- Accounts
Paystack
Flutterwave
Safaricom
Razorpay
Xendit
Permissions
Allowed Hosts
What's inside
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.