strangerstudios / pmpro-cancel-on-next-payment-date

Change membership cancellation in Paid Memberships Pro to set expiration for next payment date instead of cancelling immediately.
https://www.paidmembershipspro.com/add-ons/cancel-on-next-payment-date
8 stars 8 forks source link

Support cancellation during trial period #11

Open mircobabini opened 3 years ago

mircobabini commented 3 years ago

Describe the solution you'd like When a user cancels during trial period, the expiration date should be set to the end of trial period.

Check how e20r implemented this feature here thanks to the is_in_trial util implemented here

mircobabini commented 3 years ago

@ideadude does pmpro have an is_in_trial function somewhere to be used?

Also, I see that into e20r utility linked above there's a check for PMPro Subscription Delays add-on. If pmpro has its own is_in_trial function somewhere, that condition should be hooked to that function as well.

dwanjuki commented 10 months ago

A customer (Mods: #518165) wants the Add On to support cancellation during trials.

andrewlimaza commented 10 months ago

The Subscription Delay Add On has this built in since v0.4

https://github.com/strangerstudios/pmpro-subscription-delays/blob/dev/pmpro-subscription-delays.php#L155-L171