Hi @maniegrove,
In general, if the registration form has payment fields like PayPal or Stripe, users don’t need an additional step for approval.
Registration will only happen after successful payment, so I’m afraid I don’t fully get why you are looking to change the behaviour of Manual approval programmatically instead of using the Payment field.
If the registration needs to be done automatically and based on payment, in that case, you could disable the Manual approval feature and add a payment gateway field like PayPal or Stripe to the form so that registrations would be instant once paid.
Could you please explain what exact workflow you are looking to achieve regarding this? So that we could have a better idea and see if there is anything that could be suggested?
Please advise if I have missed out on anything. Looking forward to your response.
Kind Regards,
Nithin
Hi Nithin,
Thanks for your reply. yes, I known about your suggestions with payment integration field. But In our registration form, have to do some calculation from previous inputs & display result as charts on before payment step. (Like html field with javascript support. so that we can achieve desired result).
Thanks.
Hello @maniegrove
I’ve forwarded this already to our Second Level Support devs to further investigate a possible solution. We will keep you posted here as soon as possible, even though their response times are a bit higher than ours. Your patience is highly appreciated!
Thank you,
Dimitris
Hello @maniegrove
Our SLS team provided the following MU plugin example:
https://gist.github.com/wpmudev-sls/63d0667f0d7cbad584e3ab2be3bb5462
It detects if a Payment is submitted (and completed) in all forms that involve a User Registration, and triggers the Manual Approval in case of success.
Let us know if more assistance is needed here.
Thank you,
Dimitris