I have a form which has a selection of options for payment (via paypal, via cheque or via local authority). Paypal works fine using the paypal addon (redirects the user to paypal and once payment is received and registers the user as a fully fledged user.).
I need to know which hook to use (and how to use it) to register the user as a specific user type (ie: "user-pending") if an option other than paypal is selected.
To sum up:
If "pay with paypal" is selected, register user via paypal addon as "user" after payment.
If "pay with cheque" or "pay via local authority" is selected, ignore paypal addon and register the user as "user-pending".