pronamic / wp-pronamic-pay-memberpress

MemberPress driver for the WordPress payment processing library.
http://www.wp-pay.org/extensions/memberpress/
4 stars 1 forks source link

Add MemberPress pause and resume capabilities #11

Open remcotolsma opened 2 years ago

remcotolsma commented 2 years ago

MemberPress members may have the option to pause and resume their subscriptions themselves.

Schermafbeelding 2021-08-27 om 11 29 22

Some of the Pronamic Pay MemberPress gateways had also these capabilities: https://github.com/wp-pay-extensions/memberpress/commit/836a3dc73e036b337c4b7c39f3e811208f5fbef5

Only after resuming, payments were also started for the period(s) between pausing and resuming. That's probably not how it works in the MemberPress PayPal and Stripe gateways.

Should we cancel the Pronamic subscription completely when pausing and to crate a new Pronamic subscription on resume? Or should we cancel/stop the current Pronamic subscription phase on pause and create a new Pronamic subscription phase on resume?

Stopping the current Pronamic subscription phase on pause and starting a new phase on resume is perhaps the clearest. We could even visualize the gap between resume and pause https://github.com/spatie/period style:

period-gap

rvdsteege commented 2 years ago

I'd go with ending the current phase on pause and creating a new one on resume. This way it is clear (maybe in combination with a subscription note) why there have been no payments for a period, while the subscription seems active currently.