How txnixon/wc-paperid works
This WordPress plugin registers a WooCommerce gateway that creates Paper.id payment requests for customer orders, redirects customers to checkout, and processes Paper.id callbacks to update order status. Merchants configure credentials, environment, callback, and notification options in WooCommerce; the API client builds invoices and requests enabled email/WhatsApp notifications. The README also documents GitHub auto-updates, debugging logs, and HPOS compatibility. The excerpts show the gateway/API/callback and updater behavior; other details are based on README claims and are not expanded beyond supported paths.
Main entry points: class-paper-id-api.php Payment API Client · class-wc-gateway-paper-id.php Gateway Settings · class-paper-id-helper.php Order and Status Helpers · paper-id-woocommerce.php Plugin Bootstrap
Components 16
WooCommerce Gateway
- Plugin Bootstrap
paper-id-woocommerce.php - Gateway Settings
includes/class-wc-gateway-paper-id.php - Webhook Handler
includes/class-wc-gateway-paper-id.php - Order and Status Helpers
includes/class-paper-id-helper.php
Paper.id Payments
- Payment API Client
includes/class-paper-id-api.php - Paper.id API
- Payment Methods
- Invoice Notifications
Operations
- WooCommerce Logs
- GitHub Auto-Updater
includes/class-paper-id-updater.php - GitHub Releases
- WordPress Updates
- HPOS Compatibility
paper-id-woocommerce.php
Other components
- Merchant Admin
- Customer Checkout
- WooCommerce Orders
Connections 22
- Merchant Admin → Gateway Settings: configures
- Plugin Bootstrap → Gateway Settings: registers
- Plugin Bootstrap → GitHub Auto-Updater: initializes
- Plugin Bootstrap → HPOS Compatibility: declares support
- Customer Checkout → WooCommerce Orders: places order
- WooCommerce Orders → Gateway Settings: invokes payment
- Gateway Settings → Payment API Client: creates request
- Payment API Client → Order and Status Helpers: formats order
- Payment API Client → Paper.id API: requests invoice
- Paper.id API → Payment API Client: returns link
- Payment API Client → Order and Status Helpers: logs activity
- Payment API Client → Invoice Notifications: requests notices
- Paper.id API → Payment Methods: offers methods
- Payment API Client → Gateway Settings: returns payment link
- Gateway Settings → Customer Checkout: redirects to payment
- Paper.id API → Webhook Handler: sends callback
- Webhook Handler → Order and Status Helpers: maps status
- Webhook Handler → WooCommerce Orders: updates order
- Webhook Handler → Order and Status Helpers: logs callback
- Order and Status Helpers → WooCommerce Logs: writes logs
- GitHub Auto-Updater → GitHub Releases: checks releases
- GitHub Auto-Updater → WordPress Updates: provides updates