Open Closed

Payment module is not working. #9988


User avatar
0
devchase321 created
  • Exception message and full stack trace:

Volo.Abp.Http.Client.AbpRemoteCallException: An internal error occurred during your request! at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase1.ThrowExceptionForResponseAsync(HttpResponseMessage response) at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase1.RequestAsync(ClientProxyRequestContext requestContext) at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase1.RequestAsync[T](ClientProxyRequestContext requestContext) at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase1.RequestAsync[T](String methodName, ClientProxyRequestTypeValue arguments) at Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ClientProxies.AbpApplicationConfigurationClientProxy.GetAsync(ApplicationConfigurationRequestOptions options) at Volo.Abp.AspNetCore.Mvc.Client.MvcCachedApplicationConfigurationClient.GetRemoteConfigurationAsync() at Volo.Abp.AspNetCore.Mvc.Client.MvcCachedApplicationConfigurationClient.<GetAsync>b__19_0() at Volo.Abp.Caching.DistributedCache2.GetOrAddAsync(TCacheKey key, Func1 factory, Func1 optionsFactory, Nullable1 hideErrors, Boolean considerUow, CancellationToken token) at Volo.Abp.AspNetCore.Mvc.Client.MvcCachedApplicationConfigurationClient.GetAsync() at Volo.Abp.AspNetCore.Mvc.Client.RemoteFeatureChecker.GetOrNullAsync(String name) at Volo.Abp.Features.FeatureCheckerBase.IsEnabledAsync(String name) at Volo.CmsKit.Pro.Public.Web.Middlewares.UrlShortingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext() --- End of stack trace from previous location --- at Emerald.Web.Public.EmeraldWebPublicModule.<>c.<<OnApplicationInitialization>b__15_0>d.MoveNext() in C:\Users\PD0987\Documents\Projects\Emerald Healthcare Services\src\Emerald.Web.Public\EmeraldWebPublicModule.cs:line 361 --- End of stack trace from previous location --- at Volo.Abp.AspNetCore.Mvc.Libs.AbpMvcLibsService.<CheckLibs>b__1_0(HttpContext httpContext, RequestDelegate next) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)

HEADERS

Host: localhost:44362

  • Steps to reproduce the issue:

I have added the Payment module from the abp studio and getting above error.


6 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent

    To resolve the "Volo.Abp.Http.Client.AbpRemoteCallException: An internal error occurred during your request!" error after adding the Payment module, follow these steps to ensure correct configuration:

    1. Install Required NuGet Packages

      • Ensure all necessary Payment module NuGet packages are installed in the correct projects:
        • Volo.Payment.* and Volo.Payment.Stripe.* in Application, Application.Contracts, HttpApi, HttpApi.Client, Domain, Domain.Shared, and Web projects.
        • Volo.Payment.EntityFrameworkCore in the EntityFrameworkCore project.
    2. Update Module Dependencies

      • Add [DependsOn(typeof(AbpPaymentWebModule), typeof(AbpPaymentStripeWebModule))] to your Web module class.
    3. Configure Payment in appsettings.json

      • Add your Stripe configuration:
    "Payment": {
           "Stripe": {
             "PublishableKey": "pk_test_xxx",
             "SecretKey": "sk_test_xxx",
             "WebhookSecret": "whsec_xxx",
             "PaymentMethodTypes": []
           }
         }
    
    1. Enable Payment Support
      • In your HttpApi.Host module:
    Configure<AbpSaasPaymentOptions>(options =>
         {
             options.IsPaymentSupported = true;
         });
    
    1. Configure PaymentWebOptions
      • In your Web module's PreConfigureServices:
    public override void PreConfigureServices(ServiceConfigurationContext context)
         {
             var configuration = context.Services.GetConfiguration();
             Configure<PaymentWebOptions>(options =>
             {
                 options.RootUrl = configuration["App:SelfUrl"];
                 options.CallbackUrl = configuration["App:SelfUrl"] + "/PaymentSucceed";
             });
         }
    
    1. Database Migration

      • Run EF Core migrations to update your database with Payment module tables.
    2. Check Permissions

      • Ensure the user has the necessary permissions to access payment endpoints.
    3. Restart All Services

      • After configuration, restart all application services to apply changes.

    If you still encounter errors, check the inner exception details and ensure all URLs and endpoints are accessible from your environment.

    Sources:

    • https://abp.io/docs/latest/modules/payment

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

  • User Avatar
    0
    devchase321 created

    Hi, This did not helped me. I am getting the same error in Blazor & Public application. Please help me.

  • User Avatar
    0
    devchase321 created

    Any update for me?

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    [devchase321] said: Hi, This did not helped me. I am getting the same error in Blazor & Public application. Please help me.

    Hi, we currently provide the Blazor UI only for the admin side. Could you please share the detailed reproduction steps and let us know what you’ve done so far? This will help us reproduce the issue on our end and assist you more effectively.

  • User Avatar
    0
    devchase321 created

    Hi EngincanV,

    Thank you for your message. I have just added the Payment module in my solution from ABP Studio. I didn't change anything in default setup.

    With default setup I am giving the error and then I have added the stripe module to the blazor and public module, but this is also giving me the same error.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    [devchase321] said: Hi EngincanV,

    Thank you for your message. I have just added the Payment module in my solution from ABP Studio. I didn't change anything in default setup.

    With default setup I am giving the error and then I have added the stripe module to the blazor and public module, but this is also giving me the same error.

    Hi, I've created a Blazor application (tiered and with public-web application), imported the Payment Module:

    and then I could run the application successfully:


    When i check your log, it seems that your *HttpApi.Host project is not working. Can you please check that? If you are ensure, then please provide exact steps to reproduce the problem.

    Regards.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on October 30, 2025, 06:33