How paydunyadev/paydunya-woocommerce-gateway works
This is a WooCommerce payment-gateway plugin for PAYDUNYA, intended primarily for merchants in Senegal. The customer selects PAYDUNYA at checkout; the gateway handles payment and response processing, then updates the order and can send an SMS. The plugin also exposes a WooCommerce Blocks checkout method and supports XOF currency configuration. The excerpts show gateway setup, token verification, order updates, and SMS dispatch, but omit the full payment-initiation and callback wiring; uncertain links are therefore not asserted.
Main entry points: WC_Paydunya.php Payment gateway · custom-gateway.php Plugin bootstrap · PaydunyaBlocks.php Blocks adapter · checkout.js Blocks checkout UI
Components 14
Plugin integration
- Plugin bootstrap
custom-gateway.php
Checkout experience
- Blocks adapter
PaydunyaBlocks.php - Blocks checkout UI
js/checkout.js - Checkout payment fields
WC_Paydunya.php
Payment processing
- Payment gateway
WC_Paydunya.php - Payment request
WC_Paydunya.php - Token verification
WC_Paydunya.php - Payment callback
WC_Paydunya.php
Order completion
- Order state
WC_Paydunya.php - SMS dispatch
WC_Paydunya.php
Other components
- Customer
- WooCommerce
- PAYDUNYA
- SMS API
Connections 17
- Customer → WooCommerce: checks out
README.md - WooCommerce → Plugin bootstrap: loads plugin
custom-gateway.php - Plugin bootstrap → Payment gateway: includes gateway
custom-gateway.php - Plugin bootstrap → Blocks adapter: registers blocks
custom-gateway.php - WooCommerce → Payment gateway: uses gateway
README.md - Payment gateway → Checkout payment fields: renders fields
WC_Paydunya.php - Blocks adapter → Payment gateway: initializes
PaydunyaBlocks.php - Blocks adapter → Blocks checkout UI: registers script
PaydunyaBlocks.php - Blocks checkout UI → WooCommerce: registers method
js/checkout.js - Payment gateway → Payment request: builds arguments
WC_Paydunya.php - Payment gateway → Token verification: checks token
WC_Paydunya.php - PAYDUNYA → Token verification: returns token
- Payment gateway → Payment callback: handles callback
WC_Paydunya.php - Token verification → Order state: updates order
WC_Paydunya.php - Payment callback → Order state: completes order
WC_Paydunya.php - Token verification → SMS dispatch: sends notification
WC_Paydunya.php - SMS dispatch → SMS API: requests SMS
WC_Paydunya.php