Customer paid. Your product moves forward.
Create Pix payment requests and automate orders, access and services.
API & webhooks
Flow completeOrder #1042
Updated without manual work
Payment request created
Payment confirmed
Order released
Your product moves forward.
Illustrative example
Automate from payment request to confirmation.
One integration. Three steps.
The payment request starts in the API. The webhook updates your system.
Get your key
Generate a trq_test_ key in the dashboard and integrate without touching production.
Create the charge
One call creates the Pix checkout and returns a payment link.
Confirm via webhook
The checkout.paid event tells your system as soon as the Pix payment is confirmed.
// your endpoint receives TroqPay events
app.post("/webhooks/troqpay", (req, res) => {
const signature = req.headers["x-troqpay-signature"];
// validate the signature before trusting it
if (!isValidSignature(req.body, signature)) {
return res.sendStatus(400);
}
if (req.body.type === "checkout.paid") {
// release access or settle the order
}
res.sendStatus(200);
});Build with your existing stack. Create payment requests and confirm payments without changing your architecture.
“Help me integrate payments with TroqPay. Use the documentation as context: /llms.txt”
Integration questions
The essentials before opening the editor.
Create your first payment request.
Test the integration and move to production after KYB.