Collections · Webhook
Webhook &
Webhook &
Payment Popup
Integrate a payment popup in a few lines and receive transactional events in real time. A solution built for modern systems.
webhook-handler.js
// Réception webhook Digitwace
app.post('/webhook/payment', (req, res) => {
const { event, data } = req.body;
if (event === 'payment.success') {
// Activer la commande
activateOrder(data.reference);
sendConfirmation(data.customer.email);
}
if (event === 'payment.failed') {
notifyFailure(data.reference);
}
res.json({ received: true });
});
Available Events
All events
All events
in real time
payment.success
Payment successful
Triggered as soon as payment is confirmed and funds received.
payment.failed
Payment failed
Triggered if payment is declined or expires. Includes error code.
payment.pending
Payment pending
Triggered when payment is initiated but not yet confirmed.
refund.success
Refund processed
Triggered when a refund is successfully processed.
payout.success
Transfer completed
Triggered when an outgoing payment is confirmed by the bank or wallet.
dispute.opened
Dispute opened
Triggered when a customer disputes a transaction. Act quickly.
Integrate webhooks today
Full documentation, test sandbox and dedicated support for your integration.