pmpro-multiple-memberships-per-user icon indicating copy to clipboard operation
pmpro-multiple-memberships-per-user copied to clipboard

Payment Process not showing

Open himanshuahuja96 opened this issue 5 years ago • 2 comments

Replication Steps: I suppose you have two groups and any number of levels and Group names are Group A and Group B. I will be referring with same here too.

  1. Create a Free Level in Group A
  2. Now create a paid level in Group B
  3. Do the checkout by selecting Free level from Group A and Paid Level from Group B
  4. And will be able to replicate

himanshuahuja96 avatar Sep 02 '19 11:09 himanshuahuja96

I've been able to recreate this. Working on a fix.

ideadude avatar Oct 18 '19 18:10 ideadude

Did some work on this here https://github.com/strangerstudios/pmpro-multiple-memberships-per-user/commit/3284d3864e179ea4e1f92ddf0d01a644d89419aa

However, we need to also update core PMPro to use the pmpro_require_billing filter when whether or not to enqueue gateway JavaScript. e.g. here: https://github.com/strangerstudios/paid-memberships-pro/blob/dev/classes/gateways/class.pmprogateway_stripe.php#L370

To avoid having multiple versions of the pmpro_require_billing filter, I'm going to create an abstracted function (maybe pmpro_require_billing() ) that checks the pmpro_level by default, but includes the filter so MMPU will override it. I'll try to get that pushed out ASAP. Maybe next week. Will link here when we have a patch.

ideadude avatar Oct 18 '19 19:10 ideadude