Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In App Purchase #138

Open
anandsork opened this issue Aug 23, 2022 · 2 comments
Open

In App Purchase #138

anandsork opened this issue Aug 23, 2022 · 2 comments

Comments

@anandsork
Copy link

I would like to offer IAP to my users. However would not like to use Oddo server.
It is like SMS (To be specific messages/mails) credits of our own service.
I thought of putting that as a product so user can buy it.. like we have Number of Users.. It can be Number of Credits.. However it does not seem to be a right way to do it.

Is there any way to Create IAP for SaaS users?
Can the main server be used as IAP server for the same?

(I looked at https://github.com/OCA/server-tools/tree/14.0/iap_alternative_provider. However it is like creating another server. Can't it be done with saas-addons alone?)

Any pointer will be helpful.

@anandsork
Copy link
Author

Rephrasing the question..

My Understating So far after reading
There are 3 main components in IAP..

  1. Client (Module on Client Setup i.e. DB created via template),
  2. Service Provider (Module on main Oddo instance. Can be any webservice but we shall assume is module in main DB)
  3. Odoo (iap.odoo.com)

Flow is
We register our service in Odoo.
Client register & buy pack on Odoo.
Client request Service Provider to do some service.
Service Provider asks Odoo whether there are credits remaining & charge the credit.

Now the questions are

  1. Can I skip Odoo from this flow completely?
  2. Can I redirect users to My Main Odoo portal (I am offering Odoo as a service by my own) to buy some prepaid credit pack?
    (In short, can my main portal work like odoo?)

Using SaaS-addons I could create xyz.com as main portal. Then with registration & payment gateway, my clients can create cust1.xyz.com (Creating DB using template and build mechanism saas-addons provide)
I would like to use same xyz.com portal for user to buy credit packs. (& not redirecting to iap.odoo.com when customer click on buy credits on cust1.xyz.com)
Is is possible? If yes, how?

Some thoughts of alternate ways
I could create a product (say some variants). However if I try to use same flow like IAP (charge/authorize etc), it won't work.
As I am building the service similar to SMS (e.g Whatsapp messages or Google RCS message), I would like to have similar flow.
(I do not want users to go another portal, buy credits & then enter Token here in cust1.xyz.com..
There are few examples over there like Twillo modules which do so)

Can somebody give pointers to proceed?

@anandsork
Copy link
Author

Any pointers if not IAP, how can I achieve it?
One thought was as said, to create product (service one) and then add a field in customer to maintain the credit numbers.
However how can I send automated mails when credit balance is low? Here the question is more towards any simple configuration instead of coding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant