- ABP Framework version: v8.1.0
- UI Type: Angular
- Database System: EF Core (SQL Server)
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace:
- Steps to reproduce the issue:
I was elaborating payment module to use with the each tenant. But couldn't find any way or related documents. Basically I want to give a feature to each tenant so they can collect amount from their customers using stripe or paypal etc.. But each tenant have their separate configuration for different payment gateway.
Can you please suggest me if there is any way, so I can use the payment module with my scenario to give a payment configuration for each tenant & use the existing payment module?
Thank you.
3 Answer(s)
-
0
Hi,
The Payment module is designed for the Host side.
If you want to use it in tenants, you need to customize the source code.
You can download the payment module source code via the ABP suite.
- Change the entity to a multi-tenant entity
- Change permissions menu etc., available to tenants
Change the
ConfigurePayment
methodYou can define payment configuration settings and have them read every time you use them, for example:
https://github.com/abpframework/abp/blob/10f756bae69a72ba5741dcd10758ee3d8f5cd724/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpIdentityOptionsManager.cs#L11
https://github.com/abpframework/abp/blob/10f756bae69a72ba5741dcd10758ee3d8f5cd724/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpIdentityDomainModule.cs#L72
https://github.com/abpframework/abp/blob/10f756bae69a72ba5741dcd10758ee3d8f5cd724/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml.cs#L98
-
0
Hi liangshiwei,
Thank you for your help. I am on a Team license, so I don't have an access of the code. Is there any way I can override the setting and use this module for the tenants?
Thank you
-
0
Hi
Sorry, It can't be done without source code at the moment