Starts in:
1 DAY
8 HRS
36 MIN
51 SEC
Starts in:
1 D
8 H
36 M
51 S

Activities of "enisn"

You need to add project references first.

Same project layers should be referenced by same project layer. For example:

  • YourApp.Domain -> YourModule.Domain

  • YourApp.Domain.Shared -> YourModule.Domain.Shared

  • YourApp.Application -> YourModule.Application

  • YourApp.Application.Contracts -> YourModule.Application.Contracts

  • YourApp.HttpApi -> YourModule.HttpApi

  • YourApp.HttpApi.Client -> YourModule.HttpApi.Client

  • YourApp.Web -> YourModule.Web

...

To do that operation, go to your .csproj file, for example YourApp.Domain.csproj and add following reference:

  <ItemGroup>
  
    ...
  
    <!-- Place correct path to your module -->
    <ProjectReference Include="..\..\modules\YourModule.Domain\YourModule.Domain.csproj" />
  <ItemGroup>

Then you should add the DependsOn attribute over your YourAppDomainModule class:

[DependsOn(typeof(YourModuleDomainModule))] // <-- Add this line.
public class YourAppDomainModule : AbpModule
{
    // ...
}

And make this step for each layer.

I can't provide a way that works perfectly in any situation. Each module has different parts and extensions (maybe), the current version of CLI cant guarantee your module will be installed properly if you replace the cache, but it's a way to try.


For the current version (v5.0), the best way to install module is manual installation. Adding dependencies to .csproj files and [DependsOn(typeof(...))] attribute over module class manually is the most consistent way.

You're right, Volo.Payment.Web is a MVC implementation of payment but that's what we have right now. Payment module has only Web implementation and you need to add that dependency to use PaymentGateway page. You can still configure the return URL and your users won't see those pages.

Even in an angular application, payment operations are running on server pages (MVC).


Payment gateways can't be provided by an API, it's implemented something like that:

  Gateways = _paymentWebOptions.Value.Gateways
            .Where(x => gatewaysDtos.Any(a => a.Name == x.Key))
            .Select(x => x.Value)
            .ToList();

If you still want to implement for blazor, you'll need to implement for each payment provider, currently, we have the following implementations:

  • Volo.Payment.Iyzico.Web
  • Volo.Payment.PayPal.Web
  • Volo.Payment.Payu.Web
  • Volo.Payment.Stripe.Web
  • Volo.Payment.TwoCheckout.Web

Firstly, it seems you're using a tiered application right? Is your solution tiered?

As I can see, you're using MVC UI with dynamic proxies at both js & csharp; So make sure your HttpApi.Host and Web projects include Volo.Payment.HttpApi dependency.

Hi @marketbus,

But I am getting a stripe exception stating that the sessionId is missing.

Can you please share what exception you got?


After a payment request was created, you need to redirect to/Payment/GatewaySelection?paymentRequestId=THE_ID_OF_PAYMENTREQUEST endpoint. If that endpoint doesn't exist in your application make sure your project has Volo.Payment.HttpApi and Volo.Payment.Web dependencies.

Also, when testing from within stripe, the default yourdomain.com/payment/stripe/webhook endpoint do not work. Events sent to this endpoint return an exception.

Volo.Payment.HttpApi includes webhook endpoints. If you add that dependency properly, the endpoint will exist in your application. Also sending a test webhook will always return an error because the application can't find any entry with a randomly generated id sent by test request.

Volo.Payment.Web includes web components and pages such as 'GatewaySelection', 'PrePayment', 'PostPayment' etc. If you add that dependency and configure it properly, your flow should work without an error.

If the project already has those dependencies and the exception is different than 404 not found error, please share your logs and which dependencies your project has.

That issue has been fixed at the latest patch version of v4.4

Can you try to update to v4.4.4 then try again? The problem shouldn't be reproduced.

Hi @drenton,

If navigated route matches to your page route, it'll be highlighted properly. QueryString doesn't affect that logic. It compares only Path Route Value and highlights the page.

Can you share your the code block that you define page route?

Answer

Hi @hansmogren

ABP v.4.4 is based on .NET 5.0,

So, if you want to use .Net 6.0, you should upgrade to ABP v5.0.

You can follow migration guide: https://docs.abp.io/en/abp/5.0/Migration-Guides/Abp-5_0

Hi @ChetanKumbhar

ABP Framework and ABP Commercial don't have such a table AppLitmusSetting.

As I can understand that is your application's table. So, if it's an AggregateRoot, you can use IRepository<LitmusSetting, Guid> do make operaitons on that table.

If it's not an AggregateRoot, you should add repositories with includeAllEntities as true

context.Services.AddAbpDbContext<FooDbContext>(options =>
{
    options.AddDefaultRepositories(includeAllEntities: true);
});

Then you can use IRepository<LitmusSetting, Guid> to perform database operations on that table.

Read more about repositories: https://docs.abp.io/en/abp/latest/Best-Practices/Repositories Read more about Entities & AggregateRoots: https://docs.abp.io/en/abp/latest/Entities

Hi @vinit

You can include source code of Lepton in your project via following steps below: https://support.abp.io/QA/Questions/632/How-can-I-download-the-source-code-of-the-framework-Angular-packages-theme-and-pro-modules

Then you can make changes however you want in scss files.

Lepton has 2 dark themes already. You can choose to use them. Even it can be changed in Theme Management UI on runtime.

Choosing custom colors and layouts depends on you. Create a choosing logic according to your requirements and you can call different layouts or styles in Layout, Layout is included in source code of lepton


Also we're currently working a new theme, named as LeptonX. All those problems are addressed in the LeptonX and it offers rich customization options. Currently it's not available on Blazor, but we're close to releasing a beta version. https://volosoft.com/blog/introducing-the-lepton-theme-next-generation

Showing 401 to 410 of 496 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06