When you register from the standard cb reg form it writes a row to the cb subscriptions table then takes you directly to index.php/option=com_comprofiler with the payment options. Using the API to register it doesn't add that subscription row. This is what I need to figure out at this point.
I would definitely like to keep this within the cb api if there's a way to do it, otherwise I'll have to just do the registration through normal queries which will be a pain and not very good practice.
Are there any triggers or methods I can hook into here to do this?
You can successfully register using the custom api form.
I would like to redirect to the payments page after registration but it's obviously not as simple as just redirecting to index.php?option=com_comprofiler&task=pluginclass&user=[userid]&plugin=cbpaidsubscriptions.
So now I'm looking for a trigger/method that will simply do this redirect instead of having to hack something together as I'm sure there has to be something somewhere I can tap into in order to this, correct?
*** UPDATE ***
So I can just do a redirect to /index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&do=displayplans and basically achieve what I need I think.
This will probably get me through the initial part of the build, but the next phase is showing a user's subscription data in a custom modal. The UI of this site really doesn't incorporate a user profile, rather most of the info and account controls are built into a custom fixed top bar so it's not a standard out of the box CB type site.