This is a Drupal module that extends the payment module by adding a standardized way to specify recurrency on payment line items.
This is a utility module. If no other module you want to have installed requires this you won’t need it.
Requirements
- Drupal 7.x
- payment
Usage
With this module enabled each payment line item can optionally have an additional attribute recurrence. This attribute is again an object having with the following attributes:
interval_unit(str): String with up to 16 characters describing the base interval. Usual values areyearly,monthly,weekly. If this is empty the line item is being interpreted as one-time.interval_value(int): An integer signifying the multiple of theinterval_unit(ie.interval_unit = 'monthly'andinterval_value = 3means quarterly). Defaults to1.day_of_month(int): Day of month when payments should be made (usually used for monthly payments). Usually defaults to the earliest possible day.month(int): Month when the payment should be made (usually used for yearly payments). Usually defaults to the earliest possible month.start_date(date): Payments should start on this date at the earliest. Defaults to the earliest possible date.count(int): Stop the recurrence aftercountpayments were made. An emtpy value means that the recurrence should go on indefinitely.
Payment methods that using this
Please open a documentation bug if a payment method is missing here
Rationale
Why is this based on line items not on payments?
Some use-cases require a one-time payments in addition recurrent payments. Having the possibility to have line items with mixed recurrence means such a transaction can be processed as a single payment.
How does this compare to payment recurring?
Payment recurring assumes that Drupal should be responsible for keeping track of all the single payments made for ongoing payments while payment recurrence assumes the payment methods themselves can handle that.
Project information
- Project categories: E-commerce, Developer tools
- Ecosystem: Payment
17 sites report using this module
- Created by torotil on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
