06-16-2010, 01:57 PM
Hello there I'm developing a billing cycle feature to THT, when I finish I will proposed it to the core developers ...
I'm also developing a plugin management for payment methods. So we can pay with other than paypal.
Billing cycles DB changes
1. Adding a new table billing_cycles (id, name, number_months)
Examples:
1, Annually, 12
2, Monthly, 1
2. Adding a new table billing_packages (billing_id, packages_id, amount)
So every package will have a relation here.
Plugin Method:
i'm thinking to develop something like the structure of ubercart (drupal module):
Directory structure example
includes/plugins/payment/paypal
includes/plugins/payment/2checkout
includes/plugins/payment/money_order
etc...
Example:
Inside the paypal folder we will have:
info.txt Plugin info (or whatever the name and extension)
main.php Class of the payment method (or whatever the name and extension)
I'm also developing a plugin management for payment methods. So we can pay with other than paypal.
Billing cycles DB changes
1. Adding a new table billing_cycles (id, name, number_months)
Examples:
1, Annually, 12
2, Monthly, 1
2. Adding a new table billing_packages (billing_id, packages_id, amount)
So every package will have a relation here.
Plugin Method:
i'm thinking to develop something like the structure of ubercart (drupal module):
Directory structure example
includes/plugins/payment/paypal
includes/plugins/payment/2checkout
includes/plugins/payment/money_order
etc...
Example:
Inside the paypal folder we will have:
info.txt Plugin info (or whatever the name and extension)
main.php Class of the payment method (or whatever the name and extension)