B Campbell Thank you for posting your question in Microsoft Q&A. I assume you have followed docs: How to authorize developer accounts by using Azure Active Directory B2C to set up sign-up and sign-in flow to Developer Portal and looking for user payment and product subscription user flow.
I think the second part can be achieved using Delegating product subscription flow and here are the steps you can follow for the set up:
- Set up APIM to route requests for product subscription to delegation endpoint as per steps in the doc: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-setup-delegation#set-up-api-management-to-route-requests-via-delegation-endpoint
- Create a delegation endpoint in your app service (let's say "apimdelegation") for managing payments as well as product subscription. This may include redirecting to another page to request billing information, process payment using Stripe service or page, and then subscribe the user to a selected product by calling Subscription - Create Api.
The referenced docs would help in setting up the delegation and some guidelines, but you can customize your delegation endpoint based on your need. Note, the flow explained above starts when the user selects subscribe button for a product in the developer portal.
Here is the other similar suggestion specifically for stripe payment gateway: https://github.com/microsoft/azure-api-management-monetization/blob/main/documentation/stripe-details.md
I hope this helps with your question and feel free to add a comment for any other questions.
If you found the answer helpful, please consider marking it as "Yes".