I am interested in integrating the User Registration addon + the GF PayPal addon (customized) with WPMUDEV's Pro Sites plugin and am looking for advice on the best approach & hooks to use. I'd be looking to create new sites in a network with a multi-step form that:
1) captures some contact data
2) uses Paypal pro to collect payment for a subscription via some add on (I know current version doesn't support PayPal pro)
3) returns to next step in mutli-step form to collect data about site to be created
4) after form submit (payment has been taken, validated form complete...), execute a function which exists in Pro Sites using data for the form
Do you see any problems with my approach or a better way to do it? My approach provides that the site is only created if payment is successful.
I'm unclear on:
- how to return to the next step in a multi-step form after successful payment
- how to get the numeric site ID of the site created by the user registration add on, which I need for the Pro Sites function
Any pointers or suggestions are appreciated.