For role-based products with options (e.g., memberships that last for 1, 2, 3, etc. years), it would be nice to have this module recognize that a product has its own term and adjust the recurring schedule accordingly. For example, if I have membership product that lasts for a term of 2 years, I shouldn't have an option to have it recur every 1 years -- it should be set to 2. This would apply for a role product without options that was set for a term of more than 1 year as well (since the largest period offered by uc_payflowpro is 1 year).

One solution would be to allow for recurring to be set per product option (e.g., Membership 1yr, Membership 2yr, Membership 3yr), not just the main product model/SKU. That way, recurring can be set in 2 year intervals, for example. This would require you to adjust the schedule to allow for terms beyond "Yearly." Perhaps "Every ___ years."

Is this something that is currently possible or planned for in the integration with uc_recurring?

Comments

kwinters’s picture

I'm specifically trying to avoid doing anything to treat uc_roles special, since tight integration tends to result in bugs and version incompatibilities. It's possible that uc_recurring could do something (it's not gateway-specific really), but I doubt that it does.

Since you're talking about options in forms, you can do this yourself with form alter hooks. The normal tendency is to just trust node creators not to do anything dumb.

I know uc_recurring allows you to specify > 1 year recurring periods, but I haven't tested it with PFP yet. It may just error when you try to buy it, since PFP puts other restrictions on what is a valid recurring period. If that's the case, there really isn't anything to do about it.

kwinters’s picture

Status: Active » Closed (works as designed)