Integrations
Learn how to connect Protuno with external services, payment processors, and other tools via integrations and webhooks.
Overview
Protuno supports seamless integrations with payment gateways, accounting software, e-commerce platforms, and custom webhooks. You configure these connections through the Protuno dashboard at https://dashboard.example.com/integrations. This enables automated data sync, real-time payments, and custom event handling.
Enable integrations in your account settings first. Generate API keys from https://dashboard.example.com/settings/api.
Payment Gateway Setup
Set up payment processors like Stripe or PayPal to accept payments directly in Protuno.
Choose Provider
Select your gateway in the dashboard under Integrations > Payments.
Enter Credentials
Provide your {API_KEY} and secret from the provider's dashboard.
Test Connection
Run a test transaction to verify the setup.
Use these parameters for Stripe:
Webhook signature header.
const stripe = require('stripe')('sk_test_YOUR_STRIPE_SECRET');
const paymentIntent = await stripe.paymentIntents.create({
amount: 2000,
currency: 'usd',
metadata: { protuno_order_id: 'order_123' }
});
Configure PayPal REST API:
const paypal = require('@paypal/checkout-server-sdk');
const environment = new paypal.core.SandboxEnvironment(
'YOUR_CLIENT_ID', 'YOUR_CLIENT_SECRET'
);
const client = new paypal.core.PayPalHttpClient(environment);
Accounting Software Sync
Connect Protuno to QuickBooks or Xero for automatic invoice and payment syncing.
Authorize via OAuth in the dashboard.
const QuickBooks = require('node-quickbooks');
const qbo = new QuickBooks(
'clientId',
'clientSecret',
'accessToken',
false,
false,
'realmId',
false,
false,
'refreshToken'
);
await qbo.createInvoice(invoiceData);
Use Xero's API with your tenant ID.
const XeroClient = require('xero-node');
const xero = new XeroClient({
consumerKey: 'YOUR_CONSUMER_KEY',
consumerSecret: 'YOUR_CONSUMER_SECRET',
privateKey: 'YOUR_PRIVATE_KEY'
});
await xero.accounting.api.invoices.postInvoices({ Invoices: [invoice] });
E-commerce Platform Links
Link Protuno with popular e-commerce tools for order fulfillment.
Shopify
Sync orders and inventory in real-time.
WooCommerce
Use webhooks for automatic order import.
BigCommerce
Handle payments and shipping updates.
Custom Webhook Configuration
Set up webhooks to receive Protuno events like order.created or payment.failed.
// Dashboard: POST https://dashboard.example.com/webhooks
{
"url": "https://your-webhook-url.com/webhook",
"events": ["order.created", "payment.failed"],
"secret": "whsec_YOUR_WEBHOOK_SECRET"
}
Verify incoming payloads:
const crypto = require('crypto');
const sig = req.headers['protuno-signature'];
const hmac = crypto.createHmac('sha256', 'YOUR_WEBHOOK_SECRET');
hmac.update(req.body);
const computedSig = 'protuno-signature=' + hmac.digest('hex');
if (sig !== computedSig) {
throw new Error('Invalid signature');
}
import hmac
import hashlib
payload = request.data
signature = 'protuno-signature=' + hmac.new(
b'YOUR_WEBHOOK_SECRET',
payload,
hashlib.sha256
).hexdigest()
if request.headers.get('protuno-signature') != signature:
raise ValueError('Invalid signature')
Partner Ecosystem
Track integration status across partners.
Stripe Payments
Full payment processing
QuickBooks Sync
Invoice automation
Square POS
In-store payments
Amazon Pay
Marketplace integration
Contact support@protuno.com for custom partner requests or API access.