Build with Flux: Payment Detection for Pi Network
Add wallet-to-wallet Pi payments to your apps with our simple APIs. We detect blockchain transactions and notify you instantly - without ever touching the funds. Plus, get verified reviews and analytics tools.
Start Detecting Payments in 4 Steps
Create Your Account
Sign up for a free developer account and verify your Pi wallet address to start receiving direct payments.
Sign Up FreePurchase Credits
Buy credits to power payment detection. Each credit lets you detect one Pi payment. Credits never expire.
View PricingAdd Payment Button
Use our SDKs or copy-paste snippets to add the payment button. Customers pay directly to your wallet.
Read DocsGet Notified
Receive instant notifications when payments arrive. Track everything in your dashboard.
See Tools & SDKsCore Flux APIs
Our RESTful APIs help you detect Pi payments, verify reviews, and track business metrics - all without ever touching customer funds.
Payment Detection API
Monitor wallet-to-wallet Pi payments, get instant notifications, and track your credit usage. Create payment buttons and handle payment events easily.
Explore Detection APIReviews API
Build trust with blockchain-verified reviews. Only customers who actually paid can leave reviews, creating genuine social proof for your business.
Explore Reviews APIAnalytics API
Track detected payments, monitor credit usage, analyze customer behavior, and get insights to grow your Pi business.
Explore Analytics APIWebhooks
Get real-time notifications when payments arrive in your wallet, credits are used, reviews are posted, or other important events occur.
Learn about WebhooksStart Detecting Payments in Minutes
Add our payment button and start receiving Pi directly to your wallet. We'll handle detection and notifications.
// Import the Flux Pi Network SDK
const FluxSdk = require('flux-pi-sdk');
// Initialize the client
const flux = new FluxSdk({
apiKey: 'YOUR_API_KEY',
merchantWallet: 'YOUR_PI_WALLET_ADDRESS' // Payments go directly here
});
// Create a payment button
async function createPaymentButton() {
try {
const button = await flux.buttons.create({
amount: 10.0,
description: 'Premium subscription',
metadata: {
customerId: 'cust_12345',
productId: 'prod_7890'
},
onPaymentDetected: (transaction) => {
// Payment has arrived in your wallet!
console.log('Payment detected:', transaction.id);
console.log('Amount received:', transaction.amount);
// Credit used for detection
console.log('Credits remaining:', transaction.creditsRemaining);
}
});
// Add button to your page
document.body.appendChild(button.element);
} catch (error) {
console.error('Error creating button:', error);
}
}
// Create and mount the button
createPaymentButton();
Find more examples and full SDK documentation in our developer guides.
Frequently Asked Questions
How do credits work?
Credits power our payment detection system. Each time a customer pays and we detect the transaction on the blockchain, one credit is used. Credits never expire, and you can view your usage in real-time through our dashboard or API.
Is this different from the Pi SDK?
Yes! While the Pi SDK lets you build payment functionality from scratch, Flux provides ready-made tools that handle payment detection, notifications, and analytics. Customers still pay directly to your wallet - we just make the process simpler.
How secure is the Flux API?
Very secure! We never touch user funds - payments go directly from wallet to wallet. Our API uses TLS encryption, OAuth 2.0 authentication, and rate limiting. All transactions are verified on the blockchain for maximum security.
Do you offer technical support?
Yes! All accounts include access to our documentation and community forums. Large credit pack purchases and monthly subscribers get priority email support and dedicated technical assistance.