As for the Hooks question?
In the includes/class_paid_subscription.php
which is called by both the payment_gateway.php and payments.php.
There are two hooks
1. "paidsub_build" which adds the user to a subscription group.
If paid this execute credit to Affiliate.
2. "paidsub_delete" which deletes the user a subscription group.
If revered this execute minus credit to Affiliate.
What do you guys think?
This way we would not to hand code mod's on updates.
|