Skip to main content
This page provides a complete, working integration example that combines all VTPE concepts into a single server. It includes the Product Information API endpoint, a webhook handler with HMAC signature verification, and logic for all three event types.

Project Setup

Set the following environment variables before starting your server:

Complete Integration

The database calls (db.findOrder, db.createPendingPayment, etc.) are pseudocode. Replace them with your actual database client logic.
For details on securing your webhooks, see the Webhook Security guide. For production best practices, see the Best Practices guide.