Thanks for reporting this issue. We've opened an internal issue for this issue. We'll work on it in future milestones.
Sorry, I couldn't understand the problem, do you get an exception? Can you share detailed exception?
For subscriptions, configuring webhooks is required. The system can only know if subscription continues or not from webhooks.
So, each subscription have to be checked and updated via webhooks. But the first payment for the subscription should be completed by both webhook and redirected last page, if not, it seems there is a missing use-case or a bug
Unfortunately we can't say anything without stacktrace. If you have stacktrace of the exception, please provide us. In the audit logs, nothing is presented about the exception
That way should work. https://docs.abp.io/en/abp/latest/Distributed-Event-Bus#subscribing-to-events
Some cases might be changed according to your event bus service. Which one are you using? (RabbitMQ, Kafka, Azure etc.)
It was a temporary error and it should happen now
Currently, tenants can't configure their own payment gateway configurations by default, all the configurations are made in appsettings.json, so tenants can't use different payment accounts (different stripe, payu accaounts etc.), so there is no meaning adding new productId by tenants. So, converting that permission for host only is a better approach over this condition. We'll make some overhauls on this in the next version.
3
Regarding ABP.Volo.Payment, why tenant has permission to create plan or update plan by default. I am just trying to understand what is the logic to allow tenant to change plans created by host. Is it to allow my tenants to set their own payment Payment Gateway so my tenant can issue their own invoice and received payment from their customers, like B2B2C
It seems there is a logical issue in there, we'll try to enhance this logic in the next version but you can use the following workaround in your application for now;
Create a PermissionDefinition provider in your project. (Applcation.Contracts prefferred)
And set multitenantcy side as Host for each permission in the group.
public class PaymentFixPermissionDefinitionProvider : PermissionDefinitionProvider
{
public override void Define(IPermissionDefinitionContext context)
{
var paymentAdminGroup = context.GetGroupOrNull(PaymentAdminPermissions.GroupName);
if (paymentAdminGroup != null)
{
foreach (var permissionDefinition in paymentAdminGroup.Permissions)
{
ConvertToHostSide(permissionDefinition);
}
}
}
private void ConvertToHostSide(PermissionDefinition permissionDefinition)
{
permissionDefinition.MultiTenancySide = Abp.MultiTenancy.MultiTenancySides.Host;
foreach(var childPermissionDefinition in permissionDefinition.Children)
{
ConvertToHostSide(childPermissionDefinition);
}
}
}
We've just released LeptonX 2.0.5 version. Can you try to upgrade and try it?
Make sure your bundle files are regenerated after the update by executing abp bundle.
We'll release LeptonX 2.0.5 version later in today. It'll solve the problem.
Since it's a bug, your credit is also refunded
We've reproduces the issue, We're working on it