First you need to have the following plugins installed:
- WP User Manager
- WooCommerce addon for WP User Manager
You then need to have one or more payment gateways configured in WooCommerce.
Next, you need to have created one or more Virtual WooCommerce products that will be used for purchasing at registration.
Registration Form Settings
If the registration form should only have one product to purchase, select that product in the ‘Registration Product’ dropdown:
With a specific product selected for the form, when a user comes to register it shows that product name and price underneath the registration form fields:
The next step of the registration form is where the user enters their payment information to complete the payment:
Once the payment information has been entered and the user has clicked ‘Complete Registration’, their registration is complete and they are shown the details of what they have purchased:
Completing Payment Later
If a user attempts to register but doesn’t complete the checkout step of the registration form, they will have access to complete the payment later through the ‘subscribe’ tab on their account page (https://yoursite.com/account/subscribe):
The Subscribe tab name and slug can be customized with the ‘wpum_woo_subscribe_account_tab_name’ and ‘wpum_woo_subscribe_account_tab_slug’ filters respectively.
Content Restriction Integration
If you are using the Content Restriction addon you can restrict specific posts, pages and custom post types to users that have completed payment using the ‘Restrict by Subscription’ checkbox in the ‘WP User Manager – Content Restriction’ meta box.
If you are using the WooCommerce Subscriptions plugin, you can get users to purchase a subscription product at registration, which allows you to collect recurring payments for membership to your site.