Hi
I want to create a app solution, where user can sign up and subscripte to difference monthly paid product subscriptions. We have already a app, we have already a app related backend for the app functionalities. We are using Odoo.sh v15 already as Webshop with ERP and for other use cases.
I want now to integrate these systems, to have an efficient management system for our business case.
The users shall sign up at the app. They shall also purchasing there product inside the app. App shall be native application. So first idea, how to structure this:
- User is sign up at the app with his personal and payment data
- For functional reasons of the app, we save credentials in our own backend
- Meta data will be given to Odoo webshop backend. Here I need the right RESTapi Endpoint and Route to the Odoo backend. I think, there should be already the required routes, because the native Odoo webshop has the same functionality for sign up at purchasing process. How can I find that?
- Payment data shall be also transmitted to Odoo, to add them to the webshop user, to later create invoices with automatic payment by Odoo.
- Same Question for the Endpoint and route, to do so.
Because, I'm actual not allowed, to attach a picture or a link, here is plantUML code, for a flow chart.
@startuml
title User Sign Up process with payment data
actor User #orange
participant "React Native\nApp" as App #ff9c1c
participant "My\nBackend" as BE
User --> App: Sign up (Email; Name; Address; Payment Data)
App -> BE: Transmit user data
BE -> BE: create user in internal user pool with email as username
BE -[#red]> Odoo: add meta data to user [Name; Address]
Odoo -> Odoo: add data in internal database
Odoo -> BE: confirmance
BE -[#red]> Odoo: add payment data to user
Odoo -> BE: confirmance
Odoo -> stribe: create stribe entity for new user
stribe --> Odoo: confirmance
Odoo -> stribe: add payment data to stirbe entity
stribe --> Odoo: confirmance
Odoo -> BE: confirmance
BE --> User: send welcome mail
BE -> App: confirmance
App -> User: show next slide for order
@enduml
Thanks
Patrick