xDonations module for XOOPS 2.7.0 allows a site to accept donations/payments from Paypal and track donations using the Paypal IPN notification.
CODE: https://github.com/mambax7/xdonations/releasesFORK: https://github.com/mambax7/xdonations/What xDonations doesxDonations provides:
• PayPal donation checkout
• PayPal IPN transaction tracking
• treasury and manual financial register management
• donor and donor-meter blocks
• optional anonymous donations
• optional group/rank assignment after successful donations
• sandbox testing support
DocumentationLocal module documentation:
• docs/tutorial.md
• docs/changelog.txt
• docs/compatibility.md
PayPal configurationThe most important module settings are:
• PayPal URL
• Receiver Email
• Thank You URL
• Cancel URL
• Currency Code
PayPal URLUse one of these values:
• live:
http://www.paypal.com• sandbox:
http://www.sandbox.paypal.comReceiver EmailReceiver Email supports either:
• a single merchant email
• a combined live and sandbox value separated by |
Examples:
merchant@example.comlive@example.com|sandbox@example.com
Behavior:
• live uses the first email
• sandbox uses the second email
• if only one email is provided, that same value is used in both environments
This is especially useful for PayPal Sandbox testing and avoids sandbox INVALID_BUSINESS_ERROR issues caused by posting a live merchant address to the sandbox endpoint.
Development notesThe module now includes:
• safer install/update migrations
• hardened IPN validation
• repository/service extraction for transaction and financial logic
• PHPUnit coverage for critical IPN and utility behavior
• PHPStan configuration at module level