Skip to content

pmpro_next_payment() not accounting for expiring accounts #267

@eighty20results

Description

@eighty20results

If using pmpro_next_payment() without filtering the returned date explicitly for this case, it ignores the expiration date (if set). We typically set the enddate for cases where the admin wants the membership to expire at the end of the payment cycle when cancelling, not when the operation is done.

Does it make sense to have pmpro_next_payment() include a check for enddate being set for the user, before attempting to use the period & previous order to calculate what will likely be an incorrect "next billing date" (there shouldn't be one).

I can add a check if this is an approach you think would be appropriate.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions